workspace: event_params [id] for urlwidget

This commit is contained in:
p 2026-08-12 15:48:34 +08:00
parent 3032f26e2d
commit 10e6407419

View File

@ -59,9 +59,13 @@ async with DBPools().sqlorContext(dbname) as sor:
"binds": [{
"wid": "self",
"event": "selected",
"actiontype": "script",
"target": "self",
"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));"
"actiontype": "urlwidget",
"target": "ws_files",
"options": {
"url": files_url + "?id=",
"params": {},
"event_params": ["id"]
}
}]
}]
},