190 lines
4.8 KiB
Plaintext
190 lines
4.8 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"item": {
|
|
"access_level": null,
|
|
"config": {},
|
|
"format": "0.0",
|
|
"group": "0",
|
|
"is_hidden": false,
|
|
"label": "TX21_DM11_CDU02",
|
|
"order": 0,
|
|
"read_only": false,
|
|
"states": [
|
|
{
|
|
"label": "state",
|
|
"value": 0
|
|
}
|
|
],
|
|
"sub_path": "/Status/air_temp",
|
|
"tagpath": "[Ignition_TX21_BE]DM11/TX21_DM11_CDU02/Status/air_temp",
|
|
"type": "Status",
|
|
"widget": "status_value"
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"params.item": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 40,
|
|
"width": 300
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"position": {
|
|
"basis": "60%",
|
|
"grow": 1
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagpath": "{view.params.item.tagpath}"
|
|
},
|
|
"tagPath": "{tagpath}/Parameters.Item_Label"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"classes": "Common/Static/text",
|
|
"paddingRight": "var(--space-sm)"
|
|
},
|
|
"textStyle": {
|
|
"color": "var(--text-color)",
|
|
"textAlign": "start"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Value"
|
|
},
|
|
"position": {
|
|
"basis": "20%"
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagpath": "{view.params.item.tagpath}"
|
|
},
|
|
"tagPath": "{tagpath}/Val"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"expression": "numberFormat({value}, {view.params.item.format})",
|
|
"type": "expression"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"classes": "Common/Static/text",
|
|
"overflow": "visible",
|
|
"paddingRight": "var(--space-sm)"
|
|
},
|
|
"textStyle": {
|
|
"color": "var(--call-to-action)",
|
|
"textAlign": "right"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "EngUnit"
|
|
},
|
|
"position": {
|
|
"basis": "20%"
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagpath": "{view.params.item.tagpath}"
|
|
},
|
|
"tagPath": "{tagpath}/Parameters.Cfg_EngUnits"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value is None:\n\t\treturn \u0027\u0027\n\treturn value",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"classes": "Common/Static/text",
|
|
"paddingRight": "var(--space-sm)"
|
|
},
|
|
"textStyle": {
|
|
"color": "var(--text-muted)",
|
|
"textAlign": "start"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "FlexContainer"
|
|
},
|
|
"position": {
|
|
"basis": "60%",
|
|
"grow": 1,
|
|
"shrink": 0
|
|
},
|
|
"props": {
|
|
"alignContent": "center",
|
|
"alignItems": "center",
|
|
"justify": "center",
|
|
"style": {
|
|
"overflow": "visible"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"justify": "center",
|
|
"style": {
|
|
"marginRight": "5px",
|
|
"overflow": "visible"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |