Skip to content

Graphic Bool Widget

The Graphic Bool Widget switches icon graphics dynamically based on a boolean true/false state (e.g., lock icon vs unlock icon).

{
"id": "lock_graphic",
"type": "graphic",
"x": 80,
"y": 60,
"w": 40,
"h": 40,
"value": true,
"formatter": {
"type": "bool",
"trueIcon": "icon_lock_closed",
"trueColor": "GREEN",
"falseIcon": "icon_lock_open",
"falseColor": "RED",
},
}