Array (list of objects)
Overview
In order to use an array of objects field, add children
and type: InputType.Array
to your FieldConfig
.
It is only used for objects, if you want other arrays like text
please use InputType.MultiText
Interface
key
: A unique identifier for the field.type
: The type of input to use for the field, as specified by theInputType
enumeration.children
: A nested set of 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.
An array of a nested set of fields for use with InputType.Array
fields. This allows you to add, edit and delete multiple objects in an array.
Properties
Example
Here is an example of how the children
property can be used in a FieldConfig
object:
In this example, the passengersFormConfig object represents a group of fields that are used to add, edit and delete multiple passengers to the form.
Example Output
Last updated