Skip to content
CdsTable

Expansion and trees

Extra content for a row: expandable rows with a slot, nested tables and tree data with cascading selection.

Storybook GitLab Figma
Test coverage: 0% — low coverage
API in specs
0 / 72 props, events, slots and exposed members with a test
Test cases
13 unit · 0 browser
Code coverage
15.2% lines · 7.4% branches measured in v4.0.0-alpha.13
A11y (axe)
50 recommendations in 39 stories measured in v4.0.0-alpha.11

Expandable rows ​

The expandedRowRender slot renders the content of an expanded row — the column with the chevron appears automatically.

Nested tables ​

Anything can live inside expandedRowRender — including another CdsTable with its own columns and data.

Tree data ​

Records with a children field expand as a tree. Together with row-selection, the checkStrictly: false option turns on cascading selection: checking a parent selects its children.

Expanding every node ​

The expanded-row-keys prop makes expansion controlled: collect the keys of every parent record — and an "Expand all" button unfolds the whole tree.