{ "custom": { "AlarmSeverity": null }, "params": { "embeded": false, "objectName": "AnalogIn", "tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_CH01_DP" }, "propConfig": { "custom.AlarmSeverity": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/AlarmSummary/ActiveAlarms" }, "transforms": [ { "code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)", "type": "script" } ], "type": "tag" }, "persistent": true }, "params.embeded": { "paramDirection": "input", "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 50, "width": 100 } }, "root": { "children": [ { "children": [ { "meta": { "name": "Value" }, "position": { "shrink": 0 }, "propConfig": { "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Val" }, "type": "tag" } } }, "props": { "style": { "fontSize": 12, "overflow": "visible" }, "textStyle": { "color": "var(--tagvalue-color)", "fontSize": 12, "format": "##0.0#", "textAlign": "center" } }, "type": "ia.display.label" }, { "meta": { "name": "EU" }, "position": { "basis": "35px" }, "propConfig": { "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Val.EngUnit" }, "type": "tag" } } }, "props": { "textStyle": { "color": "var(--units-color)", "fontFamily": "inherit", "fontSize": 12 } }, "type": "ia.display.label" } ], "meta": { "name": "FlexContainer" }, "propConfig": { "props.style.outlineColor": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "transforms": [ { "fallback": "none", "inputType": "scalar", "mappings": [ { "input": -1, "output": "white" }, { "input": 0, "output": "white" }, { "input": 1, "output": "var(--coolpurple)" }, { "input": 2, "output": "var(--goldenyellow)" }, { "input": 3, "output": "var(--sunsetorange)" }, { "input": 4, "output": "var(--alarmred)" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.style.outlineStyle": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "transforms": [ { "fallback": "none", "inputType": "scalar", "mappings": [ { "input": -1, "output": "none" }, { "input": 0, "output": "none" }, { "input": 1, "output": "solid" }, { "input": 2, "output": "solid" }, { "input": 3, "output": "solid" }, { "input": 4, "output": "solid" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } } }, "props": { "alignContent": "flex-start", "style": { "gap": "3px", "overflow": "visible", "paddingLeft": 3, "paddingRight": 3 } }, "type": "ia.container.flex" }, { "meta": { "name": "AlarmIcons" }, "position": { "basis": "0.1%" }, "propConfig": { "props.params.AlarmSeverity": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "type": "property" } } }, "props": { "path": "Library/Alarms/Icons", "style": { "marginLeft": -10, "marginTop": -15, "overflow": "visible" }, "useDefaultViewHeight": true, "useDefaultViewWidth": true }, "type": "ia.display.view" } ], "events": { "dom": { "onClick": { "config": { "script": "\tif self.view.params.embeded:\n\t\ttagPath \u003d self.view.params.tagPath\n\t\tobjectName \u003d self.view.params.objectName\n\t\tpayload\u003d{\n\t\t\t\u0027objectName\u0027: objectName,\n\t\t\t\u0027tagPath\u0027: tagPath,\n\t\t\t\u0027modal\u0027: False,\n\t\t\t\u0027resizable\u0027: True,\n\t\t\t\u0027draggable\u0027: True,\n\t\t\t\u0027position\u0027: {\n\t#\t\t\t\u0027left\u0027:\u00270\u0027,\n\t#\t\t\t\u0027top\u0027:\u00270\u0027,\n\t\t\t\t\u0027width\u0027: \u00271000px\u0027,\n\t\t\t\t\u0027height\u0027: \u0027800px\u0027\n\t\t\t}\n\t\t}\n\t\tutils.nav.eqPopupMsg(self, payload)\n\telse:\n\t\tpageId \u003d self.page.props.pageId\n\t\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\t\n\t\ttagPath \u003d self.view.params.tagPath\n\t\tobjectName \u003d self.view.params.objectName\n\t\tutils.nav.openEQPopup(objectName, tagPath)\t" }, "scope": "G", "type": "script" } } }, "meta": { "name": "root" }, "props": { "style": { "classes": "containers/HoverOver", "overflow": "visible", "padding": "3px" } }, "type": "ia.container.flex" } }