Skip to main content
Version: 2.0.0

Function: PropertyFieldBinding

PropertyFieldBinding<T, CustomProps, M>(«destructured»): ReactElement<PropertyFieldBindingProps<T, M>>

This component renders a form field creating the corresponding configuration from a property. For example if bound to a string property, it will generate a text field.

You can use it when you are creating a custom field, and need to render additional fields mapped to properties. This is useful if you need to build a complex property mapping, like an array where each index is a different property.

Please note that if you build a custom field in a component, the validation passed in the property will have no effect. You need to set the validation in the EntityCollection definition.

Type parameters

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

Parameters

NameType
«destructured»PropertyFieldBindingProps<T, M>

Returns

ReactElement<PropertyFieldBindingProps<T, M>>

Defined in

lib/src/form/PropertyFieldBinding.tsx:78

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!