112 lines
2.5 KiB
Plaintext
112 lines
2.5 KiB
Plaintext
{
|
|
"custom": {},
|
|
"params": {
|
|
"filenames": []
|
|
},
|
|
"propConfig": {
|
|
"params.filenames": {
|
|
"paramDirection": "input",
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"height": 300,
|
|
"width": 400
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "Markdown"
|
|
},
|
|
"position": {
|
|
"height": "calc(100% - 100px)",
|
|
"width": "calc(100% - 50px)",
|
|
"x": 25,
|
|
"y": 25
|
|
},
|
|
"propConfig": {
|
|
"props.source": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.params.filenames"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\ttext \u003d \"Are you sure you would like to delete the following documents:\\n\"\n\tfor val in value:\n\t\ttext +\u003d \"\\n* \"+val\n\treturn text",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
}
|
|
}
|
|
},
|
|
"type": "ia.display.markdown"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tdocuments.deleteDocuments(self.view.params.filenames)\n\tsystem.perspective.sendMessage(\"custom-documents-refreshlist\", {})\n\tsystem.perspective.closePopup(\"\")"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Button_Yes"
|
|
},
|
|
"position": {
|
|
"height": 55,
|
|
"width": 100,
|
|
"x": 25,
|
|
"y": 235
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"classes": "Buttons/Grey"
|
|
},
|
|
"text": "Yes"
|
|
},
|
|
"type": "ia.input.button"
|
|
},
|
|
{
|
|
"events": {
|
|
"component": {
|
|
"onActionPerformed": {
|
|
"config": {
|
|
"script": "\tsystem.perspective.closePopup(\"\")"
|
|
},
|
|
"scope": "G",
|
|
"type": "script"
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"name": "Button_No"
|
|
},
|
|
"position": {
|
|
"height": 55,
|
|
"width": 100,
|
|
"x": "calc(100% - 125px)",
|
|
"y": 235
|
|
},
|
|
"props": {
|
|
"style": {
|
|
"classes": "Buttons/Grey"
|
|
},
|
|
"text": "No"
|
|
},
|
|
"type": "ia.input.button"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"type": "ia.container.coord"
|
|
}
|
|
} |