Please Consider adding the ability to setFilter with a column id that is not represented in the table.
Use Case:
Global filter input that can be used with setFilter function along with other filters in the table.
Right now i need to create a dummy column in order to use the setFilter function.
It can be nice if i could pass a flag to the function setFilter that indicates if the column is not represented in the table.
A global filter option would be clutch. Here's what a common use case looks like.

I think you're right. I'll start thinking on how this could fit into the API. Stay tuned.
Whats the status update for this feature ?
A global filter would be fantastic! Our use case is quite similar to the ones already requested. Being able to pair a global filter with something like Fuse.js (https://fusejs.io) for weighting and fuzzy matching would be fantastic for a lot of search use cases.
@wpapper i think so you can use material UI for react to add this feature https://material-ui.com/components/tables/
I also need such a plugin! Will this be released soon?馃槏
This is now available!
useGlobalFilter hook for performing table-wide filteringuseGlobalFilter).column parameter from the filter function signature as it was unused and no longer made sense with the array of IDs change above.filtering example to use a global filter in addition to the column filters@tannerlinsley thank you so much
@tannerlinsley MAN, you are amazing! thx :D
Fantastic, could you updated @types/react-table
useTable function with missing
const {
getTableProps,
getTableBodyProps,
headerGroups,
rows,
prepareRow,
state,
-> preGlobalFilteredRows,
-> setGlobalFilter,
} = useTable(
{
columns,
data,
defaultColumn,
},
useFilters,
useGlobalFilter
);
Fantastic lib btw!!!
@bartoszgolebiowski Feel free to submit a PR to the types repo. Those types are 3rd party and not tracked or maintained here.
hello, global filter not proper working plz any suggestion?
For anyone looking for types for the filtering properties from useTable, here is a link for a type definition file https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table
Most helpful comment
I think you're right. I'll start thinking on how this could fit into the API. Stay tuned.