本文最后更新于 2024年5月16日。
多看看discussion, issue
How to open menu links in a new tab? #1228
https://github.com/zauberzeug/nicegui/discussions/1228
nicegui在初始化的时候只有设置的组件能起作用。像一些需要执行的函数或者js不能直接运行,必须有事件触发,比如说点击按钮。
初始化函数可以执行,js不行,现在还不知道原因。
这或许是事件驱动的含义。
aggrid数据修改生效
https://www.ag-grid.com/javascript-data-grid/accessing-data/
forEachNode
https://nicegui.io/documentation/ag_gridget_client_data
() -> List[Dict]
Get the data from the client including any edits made by the client.
This method is especially useful when the grid is configured with ‘editable’: True.
See AG Grid API for more information.
Note that when editing a cell, the row data is not updated until the cell exits the edit mode. This does not happen when the cell loses focus, unless stopEditingWhenCellsLoseFocus: True is set.
return:
list of row data