Fieldset
type: "fieldset"
A group of fields with an optional label. Fieldsets can be collapsible, which helps to hide advanced options.
Properties
| Property | Type | Restrictions | Description |
|---|---|---|---|
| type | string | Required | Always fieldset. |
| label | string | - | The label of the fieldset. |
| collapsible | boolean | - | Whether users can collapse the fieldset. |
| collapsed | boolean | - | Whether a collapsible fieldset is collapsed by default. |
| children | layout | - | The field names and layout elements within the fieldset. |
Example
mobro-widget-config.json
{
"layout": [
{
"type": "fieldset",
"label": "Advanced",
"collapsible": true,
"collapsed": true,
"children": [
"field_a",
"field_b"
]
}
]
}