[
{
"type": "ia.container.flex",
"version": 0,
"props": {
"direction": "column",
"style": {
"overflow": "hidden"
}
},
"meta": {
"tooltip": {},
"name": "root"
},
"position": {},
"custom": {},
"children": [
{
"type": "ia.display.icon",
"version": 0,
"props": {
"color": "#000000"
},
"meta": {
"name": "Icon"
},
"position": {
"shrink": 0,
"basis": "50%"
},
"custom": {},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"type": "property",
"config": {
"path": "view.params.stateColor"
}
}
}
}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"textStyle": {
"marginBottom": "90%",
"rotate": "90deg",
"textAlign": "left"
},
"style": {
"classes": "Label/text-medium",
"color": "--neutral-60"
}
},
"meta": {
"name": "Label"
},
"position": {
"shrink": 0,
"basis": "50%"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"config": {
"path": "view.params.name"
},
"transforms": [
{
"expression": "try \r\n\t(split(split({value}, \"_\")[1,0],(\"-|_0|STA|SM|OPMODE|RT|PT|ASM|ST00\"))[1,0], split({value}, \"_\")[1,0])\r\n\r\n//split(\"STA010\",\"(_0|STA0|STA|RT|ASM|ST00)\")[0,0]\r\n",
"type": "expression"
},
{
"formatType": "numeric",
"formatValue": "number",
"type": "format"
}
],
"type": "property"
}
}
}
}
],
"propConfig": {
"custom.stateColor": {
"binding": {
"config": {
"expression": "//lookup({Tesla/Line/StateDefinition},{view.params.state},\"#00000\",\"id\",\"color\")\r\n{view.params.stateColor}"
},
"type": "expr"
}
},
"meta.tooltip.text": {
"binding": {
"config": {
"expression": "\"Details: \"+{view.params.detail}+\" \\nState: \" +{view.params.stateName}"
},
"type": "expr"
}
}
}
}
]