109 lines
2.3 KiB
Plaintext
109 lines
2.3 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"breadcrumbs": "",
|
|
"icon": {
|
|
"path": "material/home"
|
|
},
|
|
"label": "value",
|
|
"target": "/Facility"
|
|
},
|
|
"propConfig": {
|
|
"params.breadcrumbs": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.icon": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.label": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
},
|
|
"params.target": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 35,
|
|
"width": 35
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "ExpandIcon"
|
|
},
|
|
"position": {
|
|
"basis": "25px"
|
|
},
|
|
"propConfig": {
|
|
"props.path": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.icon.path"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"color": "var(--text-color)"
|
|
},
|
|
"type": "ia.display.icon"
|
|
}
|
|
],
|
|
"events": {
|
|
"dom": {
|
|
"onClick": {
|
|
"config": {
|
|
"script": "\t#toggleItemsByPath(itemsCopy, itemPath, breadcrumb)\n\ttarget \u003d self.view.params.target\n\tif target !\u003d \"\":\n\t\tsystem.perspective.navigate(view \u003d target)\n\t\tself.session.custom.breadcrumbs \u003d self.view.params.breadcrumbs"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "root",
|
|
"tooltip": {
|
|
"enabled": true
|
|
}
|
|
},
|
|
"propConfig": {
|
|
"custom.breadcrumbs": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.breadcrumbs"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\treturn str(value)",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
},
|
|
"meta.tooltip.text": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.label"
|
|
},
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"props": {
|
|
"justify": "center",
|
|
"style": {
|
|
"cursor": "pointer"
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |