Files
Stream_PHX_A7/Gateways/FE/projects/.resources/ebfa19020896b1ace24c392992af45a05d0865b7cf4c11c0f453e1872e42aa54

96 lines
2.4 KiB
Plaintext

{
"custom": {},
"params": {
"objectName": "FltCodeEnables",
"tagPath": "value"
},
"propConfig": {
"params.objectName": {
"paramDirection": "input",
"persistent": true
},
"params.tagPath": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 40,
"width": 90
}
},
"root": {
"children": [
{
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tpageId \u003d self.page.props.pageId\n\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tutils.nav.openEQPopup(objectName, tagPath)\n"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Hiddn BTN"
},
"position": {
"height": 41,
"rotate": {
"anchor": "25% 50%"
},
"width": 139
},
"props": {
"style": {
"backgroundColor": "#27669C",
"borderBottomLeftRadius": "4px",
"borderBottomRightRadius": "4px",
"borderTopLeftRadius": "4px",
"borderTopRightRadius": "4px",
"boxShadow": "var(--boxShadow2)",
"classes": "containers/HoverOver",
"color": "white",
"overflow": "visible",
"padding": 10
},
"text": "FltCodes",
"textStyle": {
"fontSize": 16,
"textAlign": "center"
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "root"
},
"propConfig": {
"meta.visible": {
"binding": {
"config": {
"expression": "{session.props.auth.user.roles}"
},
"transforms": [
{
"code": "\troles \u003d value\n\tvisible \u003d False\n\tfor role in roles:\n\t\tif role \u003d\u003d \u0027Prime User\u0027:\n\t\t\tvisible \u003d True\n\t\t\treturn visible",
"type": "script"
}
],
"type": "expr"
}
}
},
"props": {
"style": {
"backgroundColor": "transparent",
"overflow": "visible"
}
},
"type": "ia.container.coord"
}
}