Replies: 2 comments 3 replies
-
Sorry for offtopic but this app is fire bro! |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm currently attempting to build an Airtable-esque filter component. I'm wondering if it is possible to use the
useGlobalFilter
hook to choose what columns to filter a table by programmatically. For example, Airtable implements table filtering using a component that lives outside of a given table's boundaries. Inside of this component, there is a dropdown menu to choose which column to apply afilterValue
and a dropdown to choose thefilterType
for a given column. Based on react-table's documentation, it appears thatuseGlobalFilter
is used to build filtering components that exist outside of the table. However, based on the documentation's code sandbox example, for filtering, it also appears thatuseGlobalFilter
applies the filter value to all columns rather than to specific columns.My question would be if it's possible to use
useGlobalFilter
's ability to create filtering UI outside of a table and have a way to select what columns to apply afilterValue
&filterType
, all from within the global filter?If this is possible, would anyone be willing to provide tips or advice on the implementation? Please let me know if this task would be more suited for
useFilters
or another part of react-table's API.I've provided a screenshot of Airtable's filter component as an example of what I'd like to build. Any feedback or advice would be much appreciated!☺️
Beta Was this translation helpful? Give feedback.
All reactions