checkbox Component
Use the checkbox component for options selection, such as an "on"/"off" state for a preference or setting.
{
"type": "checkbox",
"text": "Tick me!"
}
Properties
Also see Shared Properties.
Event Triggers
This component dispatches the following event triggers:
| Trigger | Description |
|---|---|
"changed" |
When the checkbox state has changed. |
Examples
Play a sound when changed
{
"type": "checkbox",
"text": "Tick me!",
"checked": true,
"events": [
{
"triggers": "changed",
"action": {
"type": "json",
"src": {
"sound": {
"src": "Funk"
}
}
}
}
]
}