NepaliDateRangeFieldView
fun NepaliDateRangeFieldView(context: Context, initialStartValue: SimpleDate? = null, initialEndValue: SimpleDate? = null, locale: NepaliDateLocale = NepaliDatePickerDefaults.DefaultRangePickerLocale, dateFormat: NepaliDateFormatter.Pattern = Pattern.YYYY_SLASH_MM_SLASH_DD, yearRange: IntRange = NepaliCalendarDefaults.NepaliYearRange, selectableDates: NepaliSelectableDates? = null, outlined: Boolean = true, startLabel: String? = null, endLabel: String? = null, supportingText: String? = null, isStartError: Boolean = false, isEndError: Boolean = false, enabled: Boolean = true, readOnly: Boolean = false, confirmButtonText: String? = null, dismissButtonText: String? = null, cornerRadius: Float = EmbeddedPickerDefaults.FIELD_CORNER_RADIUS, initialCalendarSystem: CalendarSystem = CalendarSystem.BIKRAM_SAMBAT, showCalendarSystemToggle: Boolean = false, showAdjacentMonthDays: Boolean = false, events: NepaliEventOptions? = null, onHeightChange: (Float) -> Unit = {}, onRangeChange: (SimpleDate?, SimpleDate?) -> Unit): View(source)
The range text field, with an optional picker dialog behind it, as a plain View. Mirrors the iOS NepaliDateRangeFieldViewController.
outlined chooses the bare text field; the filled variant opens the calendar dialog and takes the confirm and dismiss texts. onRangeChange fires with the plain dates as they are typed or picked, null for a side that is empty or unparseable.