Repeater Field
type: "repeater"
A field to repeat a set of fields.
Additional Fields
Field | Type | Description |
---|---|---|
defaultValue | Record<string, unknown>[] | The optional default value |
config | - | The fields that can be configured for each item |
layout | - | The layout how the fields should be structured |
Example
mobro-widget-config.json
{
"config": [
{
"name": "example",
"label": "Example",
"type": "repeater",
"config": [
{
"name": "some_string",
"type": "string",
"label": "Some string"
},
...
]
}
]
}
Usage
To consume the configured value of this field in a widget, see useRepeaterField and Repeater.