173 lines
4.3 KiB
Plaintext
173 lines
4.3 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"desc": "Output Power",
|
|
"tagpath": "[Ignition_SATB1_IO3_default]GAL1171/SATB1_GAL1171_PDU_P3-1-1/Output Total KW"
|
|
},
|
|
"propConfig": {
|
|
"params.desc": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagpath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 139,
|
|
"width": 107
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Label",
|
|
"tooltip": {
|
|
"enabled": true
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "70%"
|
|
},
|
|
"propConfig": {
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagpath": "{view.params.tagpath}"
|
|
},
|
|
"tagPath": "{tagpath}.OpcItemPath"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
},
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagpath": "{view.params.tagpath}"
|
|
},
|
|
"tagPath": "{tagpath}"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value is None:\n\t\treturn 0\n\treturn value",
|
|
"type": "script"
|
|
},
|
|
{
|
|
"formatType": "numeric",
|
|
"formatValue": "#.#",
|
|
"type": "format"
|
|
}
|
|
],
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"textStyle": {
|
|
"color": "var(--tagvalue-color)",
|
|
"fontFamily": "inherit",
|
|
"fontSize": 18,
|
|
"textAlign": "end"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Label_0"
|
|
},
|
|
"position": {
|
|
"basis": "30%"
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"fallbackDelay": 2.5,
|
|
"mode": "indirect",
|
|
"references": {
|
|
"tagpath": "{view.params.tagpath}"
|
|
},
|
|
"tagPath": "{tagpath}.EngUnit"
|
|
},
|
|
"type": "tag"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"textStyle": {
|
|
"color": "var(--units-color)",
|
|
"fontSize": 12,
|
|
"textAlign": "start"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "FlexContainer"
|
|
},
|
|
"position": {
|
|
"grow": 1
|
|
},
|
|
"props": {
|
|
"justify": "center",
|
|
"style": {
|
|
"gap": "5px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Label"
|
|
},
|
|
"propConfig": {
|
|
"props.text": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.desc"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"textStyle": {
|
|
"fontSize": 12,
|
|
"textAlign": "center"
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"direction": "column",
|
|
"style": {
|
|
"backgroundColor": "var(--container)",
|
|
"borderBottomLeftRadius": 5,
|
|
"borderBottomRightRadius": 5,
|
|
"borderTopLeftRadius": 5,
|
|
"borderTopRightRadius": 5,
|
|
"boxShadow": "var(--boxShadow2)",
|
|
"overflow": "visible",
|
|
"padding": "5px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |