Single cell selection mode
Switches the selection unit from rows to cells, so one cell at a time can be selected and highlighted. This is used for spreadsheet-like apps where actions such as copy or detail inspection target a single value. Cell selection is separate from focus but can follow it.
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
A price matrix grid with selectionUnit 'cell' and a formula bar bound to the selected cell.
Expected behavior
Clicking a cell selects it and fills the formula bar. Arrow keys move the focus, and the selection follows when enabled. Ctrl+C copies the cell value when enabled.
Planned API surface
selectionUnit: 'row' | 'cell'selectedCellsonCellSelectionChangegridApi.selectCell(rowKey, colId)Acceptance criteria
- In cell mode, the selected cell has aria-selected='true', and rows do not carry aria-selected. (pending)
- Only one cell is selected in single-cell mode. (pending)
- selectCell selects the cell and fires onCellSelectionChange. (pending)
- Copy places the formatted value, or the raw value if configured, on the clipboard. (pending)
- Switching selectionUnit clears the incompatible selection and fires an event. (pending)