Skip to content

[v8] Expanding rows. How to render custom component that spans all columns? #4187

Discussion options

You must be logged in to vote

I found subrows more geared towards when the expanded rows followed the same shape as the parent,

so rather than using row.getToggleExpandedHandler() I used row.toggleExpanded() which means you don't have to fake a sub row for the toggle to work as expected.

Then I would conditionally display a table row with one cell that's col width is colSpan={props.table.getAllLeafColumns().length}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dcworldwide
Comment options

@nelsonmandeladev
Comment options

Answer selected by dcworldwide
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