NepaliCalendarView

fun NepaliCalendarView(context: Context, initialSelectedDate: SimpleDate? = null, locale: NepaliDateLocale = NepaliDatePickerDefaults.DefaultLocale, yearRange: IntRange = NepaliCalendarDefaults.NepaliYearRange, showTodayButton: Boolean = true, showCalendarSystemToggle: Boolean = false, showAdjacentMonthDays: Boolean = true, showSecondaryDates: Boolean = true, secondaryDateLocale: NepaliDateLocale? = null, initialCalendarSystem: CalendarSystem = CalendarSystem.BIKRAM_SAMBAT, showDaySummary: Boolean = false, showMonthEvents: Boolean = false, events: NepaliEventOptions? = null, onHeightChange: (Float) -> Unit = {}, onEventTapped: (NepaliCalendarEvent) -> Unit = {}, onDaySelected: (CustomCalendar, NepaliDayStatus) -> Unit): View(source)

The browsable month calendar as a plain View, for hosts that cannot compose: a Flutter platform view or an XML layout. Mirrors the iOS NepaliCalendarViewController parameter for parameter.

The grid fills the width it is given and draws at a fixed height whatever the month's shape. onHeightChange reports that height in density independent points, for hosts that size the view themselves.

Parameters

initialSelectedDate

the day picked when the calendar first appears, or null for none.

locale

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

yearRange

the Bikram Sambat years the calendar pages over.

showSecondaryDates

whether every cell also shows the same day in the other calendar.

secondaryDateLocale

the language and digits those second numbers are written in, or null to use the calendar's own locale.

events

the institution's weekly rule and the days it names, or null for Nepal's usual office week with nothing named.

showDaySummary

whether the picked day is written out under the grid.

showMonthEvents

whether the month's events are listed under the grid, below the day's summary when both are shown. Both stack inside this one view, since two views cannot share a selection.

onDaySelected

invoked with the tapped day and what the policy says about it.

onEventTapped

invoked with the event behind a tapped line of the stacked month list.