datePickerLayout

fun datePickerLayout(yearWeight: Float? = 1.2f, monthWeight: Float? = 0.8f, dayWeight: Float? = 0.8f, columnOrder: List<DatePickerColumn> = listOf( DatePickerColumn.YEAR, DatePickerColumn.MONTH, DatePickerColumn.DAY )): DatePickerLayout

Creates layout options for io.github.kezlab.compose.pickers.date.DatePicker columns.

Pass null for a column weight when io.github.kezlab.compose.pickers.date.DatePicker should use pickerModifier to define that column width instead of filling weighted row space.

Return

A DatePickerLayout instance with the specified column weights.

Parameters

yearWeight

The year column weight.

monthWeight

The month column weight.

dayWeight

The day column weight.

columnOrder

The visual column order. Must contain every DatePickerColumn exactly once.