Skip to main content
Version: 2.0.0

Type alias: PropertyBuilder<T, M>

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

Type parameters​

NameType
Textends CMSType = any
Mextends Record<string, any> = any

Type declaration​

β–Έ ({ values, previousValues, propertyValue, 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.

Parameters​
NameType

| { values, previousValues, propertyValue, path, entityId } | PropertyBuilderProps<M> |

Returns​

Property<T> | null

Defined in​

packages/firecms/src/types/properties.ts:269

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!