TanStackT
TanStackโ€ข4y agoโ€ข
2 replies
exclusive-coral

globalFilter that can apply to specific columns

Hi there! I have a feature where I can have the global filter apply to all columns, or narrow it down to specific columns. Was wondering what the best approach would be for implementing this?

For example, if I had this table:

| firstName | lastName | Id |
| john      | taylor   | 1  |
| taylor    | green    | 2  |


if I searched by default for "Taylor", I'd expect 2 rows returned. But if I narrow it to the firstName column and set a global search for "Taylor", I'd expect just a single row returned.

Thanks for any help you can provide ๐Ÿ™‚
Was this page helpful?