Expansion Direction for Grouped Rows #2510
Unanswered
brentmclark
asked this question in
General
Replies: 1 comment 6 replies
-
If it helps, I'm happy to put up a PR containing the code I'm holding on to. It will likely add clarity to this request and be a great place to discuss the proposed solution. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
As of now, the
expandRows
utility always injects the grouped row into the row collection above the expanded rows because that's where it was told to do so in the utility. Because of this, the only way to get a grouped row to render below the group of expanded rows is to reorder the data after-the-fact. It would be ideal if this was a first-class citizen ofreact-table
instead.Objective
Allow for the grouped row to be rendered below the group instead of above the group. Like this:
Proposal
Create a configuration option that will allow expansion of rows above or below a group. I have code for all of this already, but I want to follow your process correctly.
Beta Was this translation helpful? Give feedback.
All reactions