Object
Last updated
Was this helpful?
Last updated
Was this helpful?
A nested set of fields for use with InputType.Object
fields. This allows you to group related form fields together and treat them as a single field.
In order to use an object field, add children
and type: InputType.Object
to your FieldConfig
.
key
: A unique identifier for the field.
type
: The type of input to use for the field, as specified by the InputType
enumeration.
``: A nested set of fields for use with InputType.Object
fields.
label
: (optional) The label to display for the field.
isDisabled
: (optional) A boolean value indicating whether the field should be disabled.
isRequired
: (optional) A boolean value indicating whether the field is required.
defaultValue
: (optional) The default value for the field.
Here is an example of how the children
property can be used in an FieldConfig
object:
In this example, the validationForm
object represents a group of fields that are used to configure a minimum length validation. This group of fields is then reused for the minLength
and maxLength
fields, which are both of InputType.Object
type.