react-component / table

React Table
https://table.react-component.now.sh
MIT License
1.3k stars 589 forks source link

Enable combining nested rows and expandedRowRender #109

Open jmatsushita opened 7 years ago

jmatsushita commented 7 years ago

Currently adding expandedRowRender on a table removes the indendation.

It would be great to have both! (it would help to visually break between parent and children in a nested table).

yesmeck commented 7 years ago

Could you describe it more detail? What's your use case?

jmatsushita commented 7 years ago

The idea is to have nested rows that also expand. The use case is hierarchical data for instance:

country
 + region A
 - region B
   - city  A

where each nested row also has additional data (for instance an image or long description) that can be displayed with an expandedRow.

country
 + region A
 - region B
 description...
   - city  A
   description...