Tabs
Tabs
type: "tabs"
A set of tabs. Its children must be tab elements.
| Property | Type | Restrictions | Description |
|---|---|---|---|
| type | string | Required | Always tabs. |
| children | tab[] | - | The tabs. |
Tab
type: "tab"
A single tab. Can only be used as a child of tabs.
| Property | Type | Restrictions | Description |
|---|---|---|---|
| type | string | Required | Always tab. |
| label | string | Required | The label of the tab. |
| children | layout | - | The field names and layout elements within the tab. |
Example
mobro-widget-config.json
{
"layout": [
"metric",
{
"type": "tabs",
"children": [
{
"type": "tab",
"label": "Label",
"children": [
"label",
"font"
]
},
{
"type": "tab",
"label": "Value",
"children": [
"precision",
{
"type": "fieldset",
"label": "Colors",
"children": [
"value_color"
]
}
]
}
]
}
]
}