question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expand a row and render a custom component within it

See original GitHub issue

I’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.

image

Thank in advance for the support

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
Michael101shcommented, May 27, 2020

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.

4reactions
nihgwucommented, May 5, 2020

For expanded row, you have to provide the row height explicitly, so rowHeight should be a function, just like the VariableList in react-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 the DynamicList in react-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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found