Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General header for table #476

Open
lukasbash opened this issue Nov 20, 2023 · 2 comments
Open

General header for table #476

lukasbash opened this issue Nov 20, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@lukasbash
Copy link

lukasbash commented Nov 20, 2023

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.

@gfazioli
Copy link
Contributor

@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?

@lukasbash
Copy link
Author

lukasbash commented Dec 23, 2023

@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:

Screenshot 2023-12-23 at 16 57 16

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!

@icflorescu icflorescu added the enhancement New feature or request label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants