Skip to content

Best Practices for row groups in useTable #5497

Answered by LFDanLu
calthejuggler asked this question in Q&A
Discussion options

You must be logged in to vote

I had done some work earlier this year for supporting this use case in the React Spectrum TableView and ListView. You can see this code #4210 and #4173. At the moment, it isn't supported within useTable and useGrid because the GridCollection/TableCollection need some section (aka rowgroups) specific updates to process the new TableSection wrapper. There are quite a number of changes in those PRs but you can focus on looking at the changes in the aria table hooks and the stately table changes to start with.

Things to keep in mind:

  • official aria support for nested rowgroups is pretty rough/non-existant, with aria-rowspan and aria-colspan behaving worse than if you were to use native html e…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@calthejuggler
Comment options

Answer selected by calthejuggler
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants