config

fun config(years: IntRange = 1900..2100, firstDayOfWeek: DayOfWeek = DayOfWeek.MONDAY, formatterWeekDayLabel: @Composable (dayOfWeek: DayOfWeek) -> String = { defaultFormatterWeekDayLabel(it) }, formatterSelectedDate: @Composable (date: LocalDate) -> String = { defaultFormatterSelectedDate(it) }, formatterSelectedMonth: @Composable (month: Month) -> String = { defaultFormatterSelectedMonth(it) }, formatterSelectedYear: @Composable (year: Int) -> String = { it.toString() }, formatterMonthSelectorList: @Composable (month: Month) -> String = { defaultFormatterSelectedMonthInSelectorList(it) }, formatterYearSelectorList: @Composable (year: Int) -> String = { it.toString() }, dateCellHeight: Dp = 48.dp, showNextPreviousMonthButtons: Boolean = true, showNextPreviousYearButtons: Boolean = true): DatePickerConfig

Return

a DatePickerConfig

Parameters

firstDayOfWeek

the first day of the week (use DayOfWeek.MONDAY to DayOfWeek.SUNDAY)

formatterWeekDayLabel

the date format for the weekday names of the calendar

formatterSelectedDate

the date format for the text that represents the currently selected date

formatterSelectedMonth

the date format for the current month text

formatterSelectedYear

the date format for the current year text

formatterMonthSelectorList

the date format for the list in which you can select a month

formatterYearSelectorList

the date format for the list in which you can select a year

dateCellHeight

the height of cell representing a single day

showNextPreviousMonthButtons

if true, the decrease/increase buttons next to the select month are shown

showNextPreviousYearButtons

if true, the decrease/increase buttons next to the select year are shown

years

the range of years supported by the date picker