Checkbox Field
type: "checkbox"
A switch for a boolean value.
Additional Properties
| Property | Type | Description |
|---|---|---|
| defaultValue | boolean | The default value. |
Example
mobro-widget-config.json
{
"config": [
{
"name": "hide_unit",
"label": "Hide unit",
"type": "checkbox"
}
]
}
Usage
To read the value of this field in a widget, use
useCheckboxField.