Skip to content

Text Bool Widget

The Text Bool Widget maps boolean values (true / false) to custom text labels and colors (e.g. true = "CONNECTED" in green, false = "DISCONNECTED" in red).

{
"id": "status_bool",
"type": "text",
"x": 20,
"y": 50,
"w": 160,
"h": 30,
"value": true,
"formatter": {
"type": "bool",
"fontSize": 14,
"trueText": "ONLINE",
"trueColor": "GREEN",
"falseText": "OFFLINE",
"falseColor": "RED",
},
}