Multiple ranges
Holding Ctrl/Cmd while clicking or dragging adds further ranges to the selection, which then holds several disjoint ranges. Shift+F8 enters an add-to-selection mode for keyboard users.
Planned. This page shows the specification from issue #191. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Monthly expenses grid with one range preselected.
Expected behavior
Ctrl+drag adds a new range and keeps the existing ones. Areas where ranges overlap show a darker tint. Ctrl+click on a cell that is already selected starts a new range and does not deselect anything.
Planned API surface
rangeSelection.multiplerangeSelection.maxRangesgetSelectedRanges()addRange()selection:rangeChangeAcceptance criteria
- getSelectedRanges() returns the ranges in the order they were created (pending)
- Adding a range beyond maxRanges drops the oldest range and emits a warning event (pending)
- When multiple is false, Ctrl+drag replaces the current selection (pending)
- Shift+F8 toggles add mode, and an indicator is shown in the status bar (pending)