206 lines
5.1 KiB
Plaintext
206 lines
5.1 KiB
Plaintext
{
|
|
"custom": {
|
|
"tagPath": "[default]_Testing/CDU/Status/air_temp"
|
|
},
|
|
"params": {
|
|
"item": {
|
|
"access_level": null,
|
|
"group": "0",
|
|
"is_hidden": false,
|
|
"label": "CDU",
|
|
"order": 0,
|
|
"read_only": false,
|
|
"states": [
|
|
{
|
|
"label": "state",
|
|
"value": 0
|
|
}
|
|
],
|
|
"tagPath": "[default]_Testing/CDU/Status/air_temp",
|
|
"type": "Status",
|
|
"widget": "status_value"
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"custom.tagPath": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.item"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\treturn value[\u0027tagPath\u0027]",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"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.custom.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": {
|
|
"custom.path": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.item.tagPath"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"path": "{this.custom.path}"
|
|
},
|
|
"tagPath": "{path}/Val"
|
|
},
|
|
"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.custom.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"
|
|
}
|
|
} |