183 lines
4.4 KiB
Plaintext
183 lines
4.4 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"dataType": "String",
|
|
"enabled": true,
|
|
"max": 9999,
|
|
"min": -9999,
|
|
"name": "Int",
|
|
"options": [],
|
|
"tagPath": "[default]simulator/DOAS/DOAS1/Meta/Power Domain",
|
|
"visible": true
|
|
},
|
|
"propConfig": {
|
|
"params.dataType": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.enabled": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.max": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.min": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.name": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.options": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.tagPath": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.visible": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 40,
|
|
"width": 399
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Name",
|
|
"tooltip": {
|
|
"enabled": true
|
|
}
|
|
},
|
|
"position": {
|
|
"basis": "220px"
|
|
},
|
|
"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": {
|
|
"path": "view.params.tagPath"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif value is None:\n\t\treturn \"Null value\"\n\treturn value.split(\u0027/\u0027)[-1]",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"type": "ia.display.label"
|
|
},
|
|
{
|
|
"meta": {
|
|
"name": "Input"
|
|
},
|
|
"position": {
|
|
"basis": "170px"
|
|
},
|
|
"propConfig": {
|
|
"props.params.enabled": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.enabled"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.max": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.max"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.min": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.min"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.options": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.options"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.params.tagPath": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.tagPath"
|
|
},
|
|
"type": "property"
|
|
}
|
|
},
|
|
"props.path": {
|
|
"binding": {
|
|
"config": {
|
|
"expression": "case({view.params.dataType},\r\n\u0027Boolean\u0027, \u0027Library/Framework/Input/Boolean\u0027,\r\n\u0027Int4\u0027, \u0027Library/Framework/Input/Int\u0027,\r\n\u0027Int8\u0027, \u0027Library/Framework/Input/Int\u0027,\r\n\u0027Float4\u0027, \u0027Library/Framework/Input/Int\u0027,\r\n\u0027Float8\u0027, \u0027Library/Framework/Input/Int\u0027,\r\n\u0027String\u0027, \u0027Library/Framework/Input/String\u0027,\r\n\u0027\u0027)"
|
|
},
|
|
"type": "expr"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"minWidth": "10px"
|
|
}
|
|
},
|
|
"type": "ia.display.view"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"propConfig": {
|
|
"meta.visible": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.visible"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"gap": "10px",
|
|
"overflow": "visible",
|
|
"padding": "0 10px"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |