Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Table Expand Collapse All Documentation #2748

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Sticky headers keep column labels visible while scrolling, aiding navigation in

![](/assets/components/table/advanced-table/advanced-table-sticky-header.png)


### Expandable rows

Expandable rows let users show or hide more content without navigating away from the table. The expanded content should align with the header labels, even if the parent row includes minimal data.
Expand All @@ -167,6 +168,25 @@ Avoid using different density settings for parent and child rows.

!!!

### Expand/Collapse All Button

#### Button States

The button updates based on the current expansion state of the table:

- Expand All will display when all rows are collapsed.

![](/assets/components/table/advanced-table/advanced-table-sticky-header.png)

- Collapse All will display when all rows are expanded.

![](/assets/components/table/advanced-table/advanced-table-sticky-header.png)

- Mixed State – Displays when some, but not all, rows are expanded.
- Mixed State Behavior
- The mixed state provides a visual cue that expansion states vary within the table. Selecting the button in this state expands all rows.

![](/assets/components/table/advanced-table/advanced-table-sticky-header.png)

### Striping

Expand Down