carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.76k stars 1.8k forks source link

[Feature Request - React] - Expand/Collapse All Rows with a click in DataTable #4068

Closed tahaimt closed 5 years ago

tahaimt commented 5 years ago

Summary

Apparently, there is no way to expand/collapse all rows with one click in the DataTable control.

Justification

Just like a checkbox to select all the rows is put in the header of a table with select-able rows, the expandable row tables should have an expand/collapse all rows button in the header.

I would appreciate if someone can comment about any other way this can be done.

asudoh commented 5 years ago

Hi 👋 is http://react.carbondesignsystem.com/?path=/story/datatable--with-batch-expansion close to what you had in your mind?

tahaimt commented 5 years ago

Oh thanks. I dont know how I missed it!