Table Sub views
I'm using tanstack React table to render a list of objects. I'm using the column filters to filter different aspects of each entry and the global filter for a search field. I was working on a feature to add groupings of objects on top of that. For example, all records with
I initially started by adding the group filtering in the global filter which has worked nicely. But now I want to be able to get statistics about each group before doing the filtering. For example, I've modified the column filters and the search field, but now I want to see how many results are there in each group before switching to it. This is something that could've been achieved if there is some kind of a sub-views feature where the table filtering will produce sub views that can be retrieved in isolation from the same table.
Another example you can consider is if I had a set of data with tiers, and I wanted to render 3 tables representing data for each tier. In this case I have to create 3 different table objects and render them in isolation. While if we had sub views, I can create one table, and display these sub views. Any changes to the filter would update all of the them since it's the same table object.
Is there already a way to do this?
active state is in one group, all records that have been added to favorites list is another group, and a group to view all.I initially started by adding the group filtering in the global filter which has worked nicely. But now I want to be able to get statistics about each group before doing the filtering. For example, I've modified the column filters and the search field, but now I want to see how many results are there in each group before switching to it. This is something that could've been achieved if there is some kind of a sub-views feature where the table filtering will produce sub views that can be retrieved in isolation from the same table.
Another example you can consider is if I had a set of data with tiers, and I wanted to render 3 tables representing data for each tier. In this case I have to create 3 different table objects and render them in isolation. While if we had sub views, I can create one table, and display these sub views. Any changes to the filter would update all of the them since it's the same table object.
Is there already a way to do this?