WarUI

Date Range Editor

GRID-A14-F14P2beyond-baselinePlanned

Edits a start date and an end date in a single cell using a two-month range picker. It can store one object or write to two separate fields. Bookings, campaigns and contracts usually use date ranges.

Planned. This page shows the specification from issue #193. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A campaigns grid with a single Flight column that is backed by startDate and endDate fields.

Expected behavior

The first click sets the start date, hovering previews the range, and the second click sets the end date and commits. Typed input such as '2025-01-01 – 2025-01-31' is parsed. Ranges that are too short or too long are rejected.

Planned API surface

editor: 'dateRange'editorParams.startFieldeditorParams.endFieldeditorParams.minLengtheditorParams.maxLengtheditorParams.presets

Acceptance criteria

  • The end date cannot be earlier than the start date. (pending)
  • When two fields are used, both are updated in one atomic change event. (pending)
  • Presets fill the range in a single action. (pending)
  • Range length limits are enforced. (pending)