Skip to content
CdsTable

Row selection

The row-selection prop adds a column with checkboxes: the selected row keys are controlled from the outside, and the selection menu can be extended with your own items.

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

Selection and operations ​

The row-selection object turns on row selection: selectedRowKeys holds the selected keys, onChange reports the changes. Actions on the selected set fit nicely in the toolbar slot.

Custom selection menu items ​

The selections property fills the menu in the selection column header: the ready-made SELECTION_ALL, SELECTION_INVERT and SELECTION_NONE constants plus your own items with arbitrary logic.