OrreryDateRangePickerState

State for OrreryDateRangePickerDialog: the selected range, the display mode, and the visible month. Writes to setSelection are validated like clicks (bounds, disabled dates, and range length); an end before the start is dropped, other invalid writes are ignored.

Properties

Link copied to clipboard
val displayedMonth: YearMonth

The month at the picker's first visible page. Snapshot-observable.

Link copied to clipboard
Link copied to clipboard
val selectedEndDate: LocalDate?
Link copied to clipboard
val selectedStartDate: LocalDate?
Link copied to clipboard

Functions

Link copied to clipboard
fun setSelection(start: LocalDate?, end: LocalDate?)

Replaces the range through selection-engine validation; null start clears. A reversed pair (end before start) is clamped to a half-open range (end = null) before proposing, since the engine's length check only rejects reversed pairs when minDays/maxDays are configured.