Status List Widget Examples
Example 1: Device Health Rollup
Datasource Setup
- Add datasource.
- Set
Type = Static. - Set
Title = deviceHealth. - Set
Static Valueto:
json
[
{ "label": "Compressor A", "value": "Running", "status": "ok" },
{ "label": "Conveyor B", "value": "Inspect", "status": "warn" },
{ "label": "Boiler C", "value": "Offline", "status": "offline" },
{ "label": "Pump D", "value": "Fault", "status": "error" }
]- Set
Refresh = 0. - Save.
Widget Setup
- Add widget.
- Set
Type = Status List. - Set
Title = Device Health. - Set
Items Path = deviceHealth. - Leave
Label Field = label,Value Field = value, andStatus Field = status. - Enable
Show Icons. - Save.
Expected output: compact list of device statuses with color-coded indicators.
Example 2: Nested Status Object Mapping
Datasource Setup
- Add datasource.
- Set
Type = Static. - Set
Title = lineOps. - Set
Static Valueto:
json
[
{ "name": "Line 01", "state": { "value": "Ready", "code": "ok" } },
{ "name": "Line 02", "state": { "value": "Slow", "code": "warn" } },
{ "name": "Line 03", "state": { "value": "Down", "code": "error" } }
]- Set
Refresh = 0. - Save.
Widget Setup
- Add widget.
- Set
Type = Status List. - Set
Title = Line Operations. - Set
Items Path = lineOps. - Set
Label Field = name. - Set
Value Field = state.value. - Set
Status Field = state.code. - Optionally override
Status Colors (JSON)with:
json
{
"ok": "#22c55e",
"warn": "#f59e0b",
"error": "#ef4444"
}- Save.
Expected output: nested state values rendered as a color-coded operations list.