-
Notifications
You must be signed in to change notification settings - Fork 191
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
Data tables (with sorting, filtering, etc.) #903
Comments
Maybe as a start there could be an attribute added to |
Issue: how to assign metadata to table columns?@jimmyfrasche wrote:
This brings up an important general problem: a lot of these features require assigning metadata to columns. HTML has the One solution would be to improve the DX of the
Alternatively, we could do away with
|
Just linking up I know we have several isssues on this, here's one: |
This is linked in the first post. |
There's also the My thought with tying it to |
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. |
From the preliminary State of HTML 2023 data, it looks like the missing element respondents seem to need the most (even more than tabs!) is …a humble data table:
(34,794 total selections spread across 12,472 responses)
For context, this was the question:
There have been a few issues discussing aspects of data tables:
There has been some discussion about doing this in a new element (e.g.
<datagrid>
), or augmenting the existing<table>
element. The former allows us to start from a clean slate and avoid the many warts of tables, but ultimately, I think progressive enhancement should prevail. Doing it by augmenting<table>
also allows us to ship this as individual composable features, rather than one monolithic new element that will take years.That said, there are relationships between them: Sorting would require some mechanism of specifying what value to sort by (otherwise we're either stuck with lexicographical sorting, which is rarely what you want, or parsing numbers from contents which is another can of worms), which filtering could also take advantage of.
In terms of the features discussed above, it seems that if we want to tackle from easiest to hardest, the order would be:
The text was updated successfully, but these errors were encountered: