pluto_grid
pluto_grid copied to clipboard
read a map or a list of lists with the table data after filtering anything
hi
Im trying to export an excel file as the current state of the pluto table after filtering some columns. Is it possible to get the current state of the data as a map, or something like that so I can work on it with other things?
The rows and refRows properties of stateManager are lists according to the current state of PlutoGrid. The difference between the two is whether refRows is a reference or not. If both values are filtered, the filtered result is returned. Also, if pagination is performed, the list of the current page is returned, not the entire list.
stateManager.rows
- Refers to rows on the current page, not all rows.
stateManager.refRows
- Refers to rows on the current page, not all rows.
stateManager.refRows.originalList
- Refers to all rows, whether filtering or paging.
stateManager.refRows.filteredList
- If it is filtered regardless of whether it is paging or not, it refers to the filtered result rows.
Deployed in version 2.10.0. Contributed by @henry2man.
@ldsouza93 I think this can be closed now. Current export feature do takes into consideration filtered data and visible columns.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.