是否可以在dash-ag-grid中获取Ag网格的过滤行?

问题描述 投票:0回答:1

在回调中,我想在应用所有本机过滤器后获取 AgGrid 中显示的行。

目前,如果我应用一些过滤器并获取数据: 状态(“ag_grid_table”,“rowData”)

我得到了全部数据。 在破折号数据表中我会使用:

State("derived_virtual_data", "data")
python plotly ag-grid plotly-dash plotly-python
1个回答
2
投票

来自文档

virtualRowData(字典列表;可选):应用内联过滤器后网格中的 rowData。

rowData(字典列表;可选):(仅限客户端行模型)设置要在网格中显示为行的数据。

https://dash.plotly.com/dash-ag-grid/reference

因此,要获取整个数据集,您可以使用

rowData
并获取过滤后的行,您可以使用
virtualRowData

© www.soinside.com 2019 - 2024. All rights reserved.