WarUI

Rectangular cell range selection

GRID-A11-F16P1beyond-baselinePlanned

Selects rectangular ranges of cells with mouse drag, Shift+click or Shift+Arrow. Ctrl adds extra disjoint ranges. Ranges support copying as TSV and aggregate summaries, which are essential for spreadsheet-style analysis.

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 12x6 revenue matrix with a status bar showing count, sum and average.

Expected behavior

Dragging creates a highlighted rectangle. Shift+Arrow extends the active range from its anchor. Ctrl+drag adds another range. The status bar updates the aggregates. Ctrl+C copies the ranges as tab-separated text.

Planned API surface

selectionUnit: 'cellRange'allowMultipleRangesgetCellRanges()setCellRanges(ranges)onCellRangeChangerangeSummary

Acceptance criteria

  • Drag selects every cell within the rectangle defined by the start and current cells. (pending)
  • Shift+Arrow resizes the active range by one cell, and Ctrl+Shift+Arrow extends it to the data edge. (pending)
  • Ctrl+drag adds a range only when allowMultipleRanges is true. (pending)
  • getCellRanges returns ranges as {startRowKey, endRowKey, startColId, endColId}. (pending)
  • Dragging near the viewport edge auto-scrolls and extends the range. (pending)