{ "custom": {}, "params": { "ipAddr": "172.17.19.44", "tagProvider": "[Ignition_SATB1_IO1_default]" }, "propConfig": { "params.ipAddr": { "paramDirection": "input", "persistent": true }, "params.tagProvider": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 108, "width": 165 } }, "root": { "children": [ { "meta": { "name": "IP" }, "position": { "basis": "25px" }, "propConfig": { "props.text": { "binding": { "config": { "path": "view.params.ipAddr" }, "type": "property" } } }, "type": "ia.display.label" }, { "meta": { "name": "GWName" }, "position": { "basis": "25px" }, "propConfig": { "props.text": { "binding": { "config": { "struct": { "GWInfo": "{parent.custom.GWInfo}", "ipAddr": "{view.params.ipAddr}" }, "waitOnAll": true }, "enabled": false, "transforms": [ { "code": "\treturn value[\"GWInfo\"][\"PlatformName\"] if value[\"GWInfo\"] is not None else utils.GAN.GWMap[value[\"ipAddr\"]]", "type": "script" } ], "type": "expr-struct" } } }, "props": { "text": "Gateway Server" }, "type": "ia.display.label" }, { "meta": { "name": "Role" }, "position": { "basis": "25px" }, "propConfig": { "props.text": { "binding": { "config": { "path": "parent.custom.GWInfo" }, "enabled": false, "transforms": [ { "code": "\treturn value[\"RedundancyStatus\"] if value is not None else \"--\"", "type": "script" } ], "type": "property" } } }, "props": { "text": "Master" }, "type": "ia.display.label" }, { "meta": { "name": "State" }, "position": { "basis": "25px" }, "propConfig": { "props.text": { "binding": { "config": { "path": "parent.custom.GWInfo" }, "enabled": false, "transforms": [ { "code": "\treturn value[\"RedundantNodeActiveStatus\"] if value is not None else \"Offline\"", "type": "script" } ], "type": "property" } } }, "props": { "text": "Active" }, "type": "ia.display.label" } ], "custom": { "GWInfo": "192.168.1.10" }, "meta": { "name": "root" }, "propConfig": { "custom.GWInfo": { "binding": { "config": { "struct": { "ipAddr": "{view.params.ipAddr}", "timer": "now(3000)" }, "waitOnAll": true }, "enabled": false, "transforms": [ { "code": "\treturn utils.GAN.getGatewayStatus(value[\"ipAddr\"])", "type": "script" } ], "type": "expr-struct" } }, "props.style.borderStyle": { "binding": { "config": { "path": "this.custom.GWInfo" }, "transforms": [ { "code": "\treturn \"none\" if value is not None else \"solid\"", "type": "script" } ], "type": "property" } } }, "props": { "direction": "column", "style": { "borderBottomLeftRadius": 5, "borderBottomRightRadius": 5, "borderColor": "--alarmred", "borderTopLeftRadius": 5, "borderTopRightRadius": 5, "boxShadow": "var(--boxShadow2)", "overflow": "visible", "padding": "4px" } }, "type": "ia.container.flex" } }