workspace: event_params [id] for urlwidget
This commit is contained in:
parent
3032f26e2d
commit
10e6407419
@ -59,9 +59,13 @@ async with DBPools().sqlorContext(dbname) as sor:
|
|||||||
"binds": [{
|
"binds": [{
|
||||||
"wid": "self",
|
"wid": "self",
|
||||||
"event": "selected",
|
"event": "selected",
|
||||||
"actiontype": "script",
|
"actiontype": "urlwidget",
|
||||||
"target": "self",
|
"target": "ws_files",
|
||||||
"script": f"var nid=this.selected_node.user_data.id;var fp=bricks.getWidgetById('ws_files',bricks.app);if(fp)fp.setUrl('{files_url}?id='+encodeURIComponent(nid));"
|
"options": {
|
||||||
|
"url": files_url + "?id=",
|
||||||
|
"params": {},
|
||||||
|
"event_params": ["id"]
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user