{ "custom": {}, "params": { "Text": "Button", "openPopup": false, "tagPath": "tagPath/pathToTag" }, "propConfig": { "params.Text": { "paramDirection": "input", "persistent": true }, "params.openPopup": { "paramDirection": "input", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 41, "width": 140 } }, "root": { "children": [ { "meta": { "name": "Button" }, "position": { "basis": "34px", "grow": 1 }, "type": "ia.input.button" } ], "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": { "direction": "column", "style": { "overflow": "visible" } }, "type": "ia.container.flex" } }