Skip to main content

Tabs

Tabs

type: "tabs"

A set of tabs. Its children must be tab elements.

PropertyTypeRestrictionsDescription
typestringRequiredAlways tabs.
childrentab[]-The tabs.

Tab

type: "tab"

A single tab. Can only be used as a child of tabs.

PropertyTypeRestrictionsDescription
typestringRequiredAlways tab.
labelstringRequiredThe label of the tab.
childrenlayout-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"
]
}
]
}
]
}
]
}