NepaliDateFieldView
fun NepaliDateFieldView(context: Context, initialValue: SimpleDate? = null, locale: NepaliDateLocale = NepaliDatePickerDefaults.DefaultLocale, dateFormat: NepaliDateFormatter.Pattern = Pattern.YYYY_SLASH_MM_SLASH_DD, yearRange: IntRange = NepaliCalendarDefaults.NepaliYearRange, selectableDates: NepaliSelectableDates? = null, outlined: Boolean = true, label: String? = null, placeholder: String? = null, supportingText: String? = null, isError: 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 = {}, onValueChange: (SimpleDate?) -> Unit): View(source)
The date text field, with an optional picker dialog behind it, as a plain View. Mirrors the iOS NepaliDateFieldViewController parameter for parameter.
outlined chooses the bare text field; the filled variant opens the calendar dialog and takes the confirm and dismiss texts. onValueChange fires with the plain date as it is typed or picked, null while the input is empty or unparseable.