I want to be able to control scrolling in tables #141
aarongustafson
started this conversation in
Wants
Replies: 1 comment 1 reply
-
I found your suggestion after adding mine: #231 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Spreadsheet applications like Excel, Calc, Numbers, and Sheets enable certain rows and columns to be frozen. I would like to have the same capability in the
table
element. Perhaps this could be achieved using new attributes on the openingtable
tag:Picking up on syntax common in other areas, positive numbers would start at the leading edge of the horizontal or vertical axis and negative numbers would start at the end. For simplicity, row numbering would need to be applied universally—ignoring any encapsulation within
thead
,tbody
, andtfoot
—and calculations would have to be done based on render order astfoot
is supposed ot come afterthead
, but before anytbody
elements. Similarly, columns would need to ignorecolgroup
collections.It would make sense to enable the same behavior from CSS as well:
The primary challenge to something like this would be determining how tall/wide to render the table in the absence of specific instructions to that effect.
To achieve anything like this today, we must write complex components using JavaScript and ugly CSS hacks to simulate this behavior and the end result loses some of the best parts of tables (including accessibility).
https://webwewant.fyi/wants/36/
Beta Was this translation helpful? Give feedback.
All reactions