Expand a row and render a custom component within it
See original GitHub issueI’d like to be able to expand a row by clicking on a custom action and load a custom component within it. The expanded row would have colspan
= # of columns. Just like the picture below.
Thank in advance for the support
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
How can i specific expanded data row in react-table?
Step 1: Pass useExpanded to useTable . Step 2: For subComponent const renderRowSubComponent = React.useCallback( ({ row }) => ...
Read more >Unsure of how to use row expanding in V8, doesn't work with ...
What I'm trying to do is recreate what I had in V7, where I render the expanded row in line 194. This way...
Read more >Expandable Row · react-bootstrap-table2
expandRow.renderer allow you to render everything in the content of expanding row. You can custom the style or class by yourself. However, a...
Read more >Create a Collapsible Table Row with React-Bootstrap
In this guide, you will learn how to implement a collapsible row using React Bootstrap and other third-party libraries.
Read more >Exploring advanced customizations of react-table component ...
Here we will see how to customize react-table in different manner, such as different scenarios in row customizations and column customizations.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @nihgwu , I would very happy if you pleasee will add this feature, means that it is possible to insert a variable height custom component and not necessarily 50 height, and that the table behaves properly, meaning that the rows below will get down and start at the end of this component and that it will work well with (vertical) scrolling.
For expanded row, you have to provide the row height explicitly, so
rowHeight
should be a function, just like theVariableList
inreact-window
, but I think that would limit the usage as sometimes we just don’t know the exact height for the expanded area, so the best solution for this scenario should be theDynamicList
inreact-window
, but that component is still working in progress(for quite a long time), so I’m planning to implement the dynamic list by myself, but I just don’t have enough time on it right now