mantine-datatable
mantine-datatable copied to clipboard
General header for table
I often times have the use case to fuzzy search a table without considering which column can have which value. The dummy enterprise user actually does not care in which cell he can find a specific value. I would really improve this workflow by providing a general searchbox (most likely included in some header component). Also for example showing/hiding columns is a feature often times requested at a central place in the table which would then also be included in this header. Possibly more possibilities open up when it's possible to include further elements.
@lukasbash Hello, regarding
Also for example showing/hiding columns is a feature often times requested at a central place in the table which would then also be included in this header.
This feature is available starting from version v7.3 here
Regarding the search feature, can you provide us with more information? Because technically, you can already create an InputText and filter the data. Would you like something that is already done, if I understood correctly? Would you also like to highlight the searched data in the respective cell?
@gfazioli Thank you for pointing out the feature. Almost exactly what I wanted to describe, with just one crucial difference to my description in the initial issue.
In fact, all the examples have a "Reset columns" button/toggle to get back all the columns. To reset/keep track of this state we - as users of this library - would have to somehow construct our own container with the table and other elements like filters and more. A lot of tables provide a general header for this, what was my actual intention in this issue. I tried to visualize this need with the first react table with a header I found online:
Regarding the search feature, can you provide us with more information? Because technically, you can already create an InputText and filter the data. Would you like something that is already done, if I understood correctly?
I did not even mean to request some search logic inside the table, just the general header row so that I could render my own search field component from whatever library I want to use.
Would you also like to highlight the searched data in the respective cell?
Actually this would be a really awesome feature. Maybe to keep it simple, does it make sense to provide a property on the table component like highlightText or similar, and it automatically highlights the text contents of a cell (if not provided with a custom renderer)?
Thank you for the response!