NepaliDateRangePicker

fun NepaliDateRangePicker(state: NepaliDateRangePickerState, modifier: Modifier = Modifier, title: @Composable () -> Unit? = { NepaliDatePickerDefaults.NepaliDateRangePickerTitle( modifier = Modifier.padding(NepaliDateRangePickerTitlePadding), language = state.locale.language, displayMode = state.displayMode ) }, headline: @Composable () -> Unit? = { NepaliDatePickerDefaults.NepaliDateRangePickerHeadline( modifier = Modifier.padding(NepaliDateRangePickerHeadlinePadding), selectedStartDate = state.selectedStartNepaliDate, selectedEndDate = state.selectedEndNepaliDate, locale = state.locale ) }, showModeToggle: Boolean = true, showTodayButton: Boolean = true, showMonthsVertically: Boolean = true, showYearPickerAndMonthNavigation: Boolean = true, colors: NepaliDatePickerColors = NepaliDatePickerDefaults.colors())(source)

Nepali Date Range Picker let people select a range of Nepali dates and can be embedded into dialogs. See NepaliDatePickerDialog

Nepali date picker lets you pick Nepali dates via a calendar UI which displays Nepali dates.

Parameters

state

state of the Nepali date range picker. See rememberNepaliDateRangePickerState.

modifier

the Modifier to be applied to this Nepali date range picker.

title

the title to be displayed in the Nepali date range picker

headline

the headline to be displayed in the Nepali date range picker

showModeToggle

the boolean to let user toggle between Date Picker and Date Input

showTodayButton

the control to either show or hide TODAY button for navigating to today's date. It is also affected by showYearPickerAndMonthNavigation.

showMonthsVertically

the control to either show months vertically or horizontally. Note: When set to true (vertical display), the date picker uses vertical scrolling. This can lead to runtime errors if placed within a composable that also uses vertical scrolling, such as a Column with vertical scroll or a LazyColumn. Ensure your layout accommodates the vertical scrolling behavior to avoid these errors.

showYearPickerAndMonthNavigation

the control to either show or hide YearPicker button and MonthNavigation buttons. showTodayButton is affected by this.

colors

NepaliDatePickerColors that will be used to resolve the colors used for this date picker in different states. See NepaliDatePickerDefaults.colors.

Example usage:

val defaultNepaliDateRangePickerState = rememberNepaliDateRangePickerState()

NepaliDateRangePicker(defaultNepaliDateRangePickerState)

See also