sidebar_label: Custom fields
Custom fields allow you to customize the field that it is displayed in the form, related to a specific property. These fields use your own logic to render the corresponding view, and are responsible for updating the underlying property value.
If you need a custom field for your property you can do it by passing a React
component to the fieldConfig
prop of a property config
. The React component must
accept the props of type FieldProps
.
The bare minimum you need to implement
is a field that displays the received value
and uses the setValue
callback.
You can also pass custom props to your custom field, which you then receive in
the customProps
prop.
If you are developing a custom field and need to access the values of the
entity, you can use the context
field in FieldProps.
You can check all the props FieldProps