Why Can't Rows without subRows
be "Expandable"
#5243
Unanswered
gavinvaske
asked this question in
Ideas
Replies: 1 comment
-
https://tanstack.com/table/v8/docs/api/features/expanding#getrowcanexpand |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem Statement
I am rendering a table of
People
, i.e:I want the rows of this table to include some details about each person, i.e their name.
However, if a user clicks on a row, I want to utilize the built-in methods from this library that handle row expansion and/or subComponents.
However, this code in the library only allows a row to be considered "expandable" if the data you gave in
useReactTable
includes a data attribute calledsubRows
whose length is greater than 0.I can create a hack solution using to make the row "expandable"
But why do I need to? I don't want to have to populate this
subRows
attribute purely to make the library work, there must be a better solution.Beta Was this translation helpful? Give feedback.
All reactions