Skip to main content
Version: 3.0.0-beta

Type Alias: PropertyBuilder()<T, M>

PropertyBuilder<T, M>: ({ values, previousValues, propertyValue, index, path, entityId }) => Property<T> | null

You can use this type to define a property dynamically, based on the current values of the entity, the previous values and the current value of the property, as well as the path and entity ID.

Type Parameters​

• T extends CMSType = any

• M extends Record<string, any> = any

Parameters​

• { values, previousValues, propertyValue, index, path, entityId }: PropertyBuilderProps<M>

Returns​

Property<T> | null

Defined in​

packages/firecms_core/src/types/properties.ts:275

Sign up to our newsletter to get the latest news and updates. No spam!