TanStack / table

🤖 Headless UI for building powerful tables & datagrids for TS/JS - React-Table, Vue-Table, Solid-Table, Svelte-Table
https://tanstack.com/table
MIT License
24.84k stars 3.07k forks source link

All the documentation and examples I've seen for filtering use state.columns inside the Table component, with `onChange={value => column.setFilterValue(value)}`. #4363

Closed ganapathi-selva closed 1 year ago

ganapathi-selva commented 2 years ago

All the documentation and examples I've seen for filtering use state.columns inside the Table component, with onChange={value => column.setFilterValue(value)}.

Is there a way I can expose this functionality to the parent component of my Table?

For context, my goal is to have a dashboard with filters at the top of the page that when set, filter down through all the various charts and tables on the screen.

Thanks

Originally posted by @jasperdunn in https://github.com/TanStack/table/discussions/4361

jasperdunn commented 1 year ago

This issue can be closed. Aggregating data like what I was attempting isn't a good approach in the front-end. We moved to backend filtering and sorting.