It took a while but I’m finally back in the office.
Here’s the json for that part of the view:
click for json
[
{
"type": "ia.container.flex",
"version": 0,
"props": {
"alignItems": "center",
"alignContent": "center",
"style": {
"classes": "Base/padded_horizontal Base/rounded_corners Colors/background/topcard",
"gap": "16px"
}
},
"meta": {
"name": "legend"
},
"position": {
"shrink": 0
},
"custom": {},
"children": [
{
"type": "ia.container.flex",
"version": 0,
"props": {
"alignItems": "center",
"alignContent": "center"
},
"meta": {
"name": "switch"
},
"position": {
"shrink": 0
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "mode",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "mode_label"
},
"position": {
"grow": 1
},
"custom": {}
},
{
"type": "ia.input.toggle-switch",
"version": 0,
"props": {
"color": {
"selected": "#555555"
}
},
"meta": {
"name": "ToggleSwitch"
},
"position": {},
"custom": {},
"propConfig": {
"props.selected": {
"binding": {
"config": {
"bidirectional": true,
"path": "session.custom.display_safepos"
},
"type": "property"
}
}
}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "safe pos",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "safepos_label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"wrap": "wrap",
"justify": "flex-end",
"alignItems": "center"
},
"meta": {
"name": "mode_container"
},
"position": {
"grow": 1
},
"custom": {},
"children": [
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "auto"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"style": {
"classes": "TcuState/auto TcuState/legend_circle",
"height": "20px"
}
},
"meta": {
"name": "logo"
},
"position": {
"basis": "20px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "AUTO",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "manual"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"style": {
"classes": "TcuState/legend_circle TcuState/manual",
"height": "20px"
}
},
"meta": {
"name": "logo"
},
"position": {
"basis": "20px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "MANUAL",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "off"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"style": {
"classes": "TcuState/legend_circle TcuState/off",
"height": "20px"
}
},
"meta": {
"name": "logo"
},
"position": {
"basis": "20px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "OFF",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "lock"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.icon",
"version": 0,
"props": {
"path": "material/lock",
"color": "#FF0000"
},
"meta": {
"name": "icon"
},
"position": {
"basis": "24px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "LOCKED",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "stop"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.icon",
"version": 0,
"props": {
"path": "material/warning",
"color": "#FF0000"
},
"meta": {
"name": "icon"
},
"position": {
"basis": "24px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "EMERGENCY STOP",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
}
],
"propConfig": {
"position.display": {
"binding": {
"config": {
"expression": "!{session.custom.display_safepos}"
},
"type": "expr"
}
}
}
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"wrap": "wrap",
"justify": "flex-end",
"alignItems": "center"
},
"meta": {
"name": "safepos_container"
},
"position": {
"grow": 1
},
"custom": {},
"children": [
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "neutral"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"style": {
"classes": "TcuState/legend_circle TcuState/neutral",
"height": "20px"
}
},
"meta": {
"name": "logo"
},
"position": {
"basis": "20px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "NEUTRAL",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "wind"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"style": {
"classes": "TcuState/legend_circle TcuState/wind",
"height": "20px"
}
},
"meta": {
"name": "logo"
},
"position": {
"basis": "20px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "WIND",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "snow"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"style": {
"classes": "TcuState/legend_circle TcuState/snow",
"height": "20px"
}
},
"meta": {
"name": "logo"
},
"position": {
"basis": "20px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "SNOW",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "clean"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"style": {
"classes": "TcuState/cleaning TcuState/legend_circle",
"height": "20px"
}
},
"meta": {
"name": "logo"
},
"position": {
"basis": "20px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "CLEANING",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "lock"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.icon",
"version": 0,
"props": {
"path": "material/lock",
"color": "#FF0000"
},
"meta": {
"name": "icon"
},
"position": {
"basis": "24px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "LOCKED",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"style": {
"gap": "5px"
}
},
"meta": {
"name": "stop"
},
"position": {
"shrink": 0,
"basis": "120px"
},
"custom": {},
"children": [
{
"type": "ia.display.icon",
"version": 0,
"props": {
"path": "material/warning",
"color": "#FF0000"
},
"meta": {
"name": "icon"
},
"position": {
"basis": "24px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "EMERGENCY STOP",
"style": {
"classes": "Text/label_medium"
}
},
"meta": {
"name": "label"
},
"position": {},
"custom": {}
}
]
}
],
"propConfig": {
"position.display": {
"binding": {
"config": {
"path": "session.custom.display_safepos"
},
"type": "property"
}
}
}
}
]
}
]