-
Notifications
You must be signed in to change notification settings - Fork 199
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
Native ability to text search tables #803
Comments
Since the first post doesn't discuss syntax, here’s a stab at a strawman, with a lot of open questions. As an overall requirement, I think the search UI should be provided by the user, since auto-generated search UI is unlikely to work for a good chunk of use cases. We should just provide syntax that connects form elements to tables declaratively and sets all necessary parameters. Idea 1: Table-wide searchOne model could be to associate a form control with the whole table, and have that same form control search across multiple columns (all at first, then gradually introduce syntax to customize the matching). One way to do that could be:
Note that due to the inherent reactivity of HTML, authors can implement more complex search UIs by simply changing the Variations:
Other names: Idea 2: Table AND Column search?While table-wide search is useful, if we could also associate form controls with columns, then we can tackle a lot of the filtering use cases in one fell swoop (see #903). However, we don't want the latter to get in the way of the former: if all we need is a table wide search, that should be easy to specify (in the spirit of Common things should be easy, complex things should be possible). Note that it's very common to want both a table-wide search field and column-specific filtering, so the feature should not be either or. Example from Coda: Challenges:
Footnotes
|
There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label. |
Following on the back of #799 and #800, I'd like to also propose the addition of table text searching.
Data tables on the web are time and again implemented with sorting, searching and column hiding. There's a huge amount of effort required to implement a performant and accessible table with all these features.
In my mind, the key success criteria for such a feature would include:
In addition, user input throttling could also be considered, in order to reduce fast visual page shifts as users type.
The text was updated successfully, but these errors were encountered: