NepaliCalendarState

What a NepaliCalendar is showing and what is picked on it.

A calendar browses rather than asks, so this is deliberately smaller than NepaliDatePickerState: there is no typed-input mode, and no selectable-date rule, because a calendar marks days rather than refusing them. Events are not held here either; they arrive with the dev.shivathapaa.nepalidatepickerkmp.event.NepaliCalendarPolicy each surface is given, so the same state can drive a grid and a list over different policies.

Selection is optional and always Bikram Sambat, whichever calendar is displayed, which is what makes displayedCalendarSystem a display choice rather than a conversion.

Properties

Link copied to clipboard

Which calendar the grid shows. Switching keeps selectedDate as it is and re-anchors the grid on the selected day, or on the visible month when nothing is picked.

Link copied to clipboard

The Bikram Sambat month the grid is showing.

Link copied to clipboard

The month the grid is showing, in displayedCalendarSystem.

Link copied to clipboard

The Gregorian years yearRange covers, for the Gregorian view of the same span of days.

Link copied to clipboard
abstract val locale: NepaliDateLocale

The language, date format and digit script the calendar renders with.

Link copied to clipboard

The picked day, or null when nothing is picked. Always a Bikram Sambat date.

Link copied to clipboard

selectedDate in the Gregorian calendar, or null when nothing is picked.

Link copied to clipboard
abstract val yearRange: IntRange

Bikram Sambat years the calendar pages over.