Material-table: Allow to add filter inputs in header

Created on 17 Jul 2020  路  4Comments  路  Source: mbrn/material-table

Is your feature request related to a problem? Please describe.
I wanted to created a sticky filters, but it is not possible when the inputs are not in header. Right now it is only possible to have filters in table body

Describe the solution you'd like
The most user friendly solution would be adding a choice for a user to decide if they wanted filters to be placed as an additional row in table body or as inputs in header. It can be done by passing value 'header' into filtering prop.

Describe alternatives you've considered
The alternative is passing onFilterChanged to header, so while overriding header component one can use it to change filters values.

feature

Most helpful comment

This has been requested a couple of times now (see links below), our team would also really like this feature.
At least I would want to be able to put the filterrow inside the header, so I can make it sticky. Making the header sticky already works great.

Previous stale Issues:
https://github.com/mbrn/material-table/issues/780
https://github.com/mbrn/material-table/issues/1521

All 4 comments

This has been requested a couple of times now (see links below), our team would also really like this feature.
At least I would want to be able to put the filterrow inside the header, so I can make it sticky. Making the header sticky already works great.

Previous stale Issues:
https://github.com/mbrn/material-table/issues/780
https://github.com/mbrn/material-table/issues/1521

Eagerly waiting for this feature too

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

Not stale

Was this page helpful?
0 / 5 - 0 ratings