NepaliDaySummary

fun NepaliDaySummary(date: SimpleDate, modifier: Modifier = Modifier, policy: NepaliCalendarPolicy = NepaliCalendarPolicy.Default, colors: NepaliDatePickerColors = NepaliDatePickerDefaults.colors(), markerColors: NepaliDayMarkerColors = NepaliDatePickerDefaults.markerColors(), locale: NepaliDateLocale = NepaliDatePickerDefaults.DefaultLocale)(source)

What one day is, written out: whether the institution is shut, why, and everything named on it.

The verdict leads, since that is what a reader looks for first, and the weekly rule and each event follow as their own lines. A day that is open and carries nothing says so rather than showing an empty space.

Renders as a plain column that wraps its content, so it sits under a NepaliCalendar inside a screen's own scrolling container.

Parameters

date

the day to write out, Bikram Sambat.

modifier

the Modifier applied to the summary.

policy

the institution the day is read against. Give the calendar the same one.

colors

the NepaliDatePickerColors the summary themes itself from.

markerColors

the palette an event's dot is drawn in, one slot per kind.

locale

the language the verdict and the weekly rule are written in.

Example usage:

NepaliDaySummary(date = SimpleDate(2082, 6, 17), policy = officePolicy)

See also


fun NepaliDaySummary(state: NepaliCalendarState, modifier: Modifier = Modifier, policy: NepaliCalendarPolicy = NepaliCalendarPolicy.Default, colors: NepaliDatePickerColors = NepaliDatePickerDefaults.colors(), markerColors: NepaliDayMarkerColors = NepaliDatePickerDefaults.markerColors())(source)

The day picked on a calendar, written out. Follows state, and says so when nothing is picked yet.

The locale comes from the calendar's own, so the summary reads in the language the grid does.

Parameters

state

the calendar this summary follows. Share the one the grid uses.

policy

the institution the day is read against. Give the calendar the same one.

Example usage:

val state = rememberNepaliCalendarState()
val policy = remember { NepaliCalendarPolicy(provider = myEvents) }

NepaliCalendar(state = state, policy = policy)
NepaliDaySummary(state = state, policy = policy)