Multi-row selection with Ctrl/Cmd toggle
Enables multi-select mode, where Ctrl+click (Cmd+click on macOS) adds or removes a single row without affecting the others. An optional toggle-on-click mode lets a plain click toggle rows, which suits touch devices. Users need this to pick several non-adjacent records.
Planned. This page shows the specification from issue #189. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An employee grid with 100 rows in multiple mode, the modifier trigger active, and a counter showing '0 selected'.
Expected behavior
A plain click selects only the clicked row. Ctrl/Cmd+click toggles a row while keeping the others selected. In 'click' mode, every plain click toggles a row. The counter updates live.
Planned API surface
selectionMode: 'multiple'multiSelectTrigger: 'modifier' | 'click'selectedRowKeysonSelectionChangeAcceptance criteria
- Ctrl+click on an unselected row adds it and keeps the existing selection. (pending)
- Ctrl+click on a selected row removes only that row. (pending)
- A plain click in modifier mode resets the selection to the clicked row. (pending)
- In 'click' mode, a plain click toggles the row and keeps the others. (pending)
- On macOS the Meta key is treated as the modifier, and Ctrl+click is not hijacked from the context menu. (pending)