TimePickerLayout

data class TimePickerLayout(val periodWeight: Float?, val hourWeight: Float?, val minuteWeight: Float?, val columnOrder: ImmutableList<TimePickerColumn> = persistentListOf( TimePickerColumn.PERIOD, TimePickerColumn.HOUR, TimePickerColumn.MINUTE ))

Represents layout options used by io.github.kezlab.compose.pickers.time.TimePicker columns.

Set a column weight to null to leave that column unweighted so pickerModifier can provide an explicit width.

Parameters

periodWeight

The AM/PM column weight in 12-hour mode.

hourWeight

The hour column weight.

minuteWeight

The minute column weight.

columnOrder

The visual column order. Must contain every TimePickerColumn exactly once. TimePickerColumn.PERIOD is still required in 24-hour mode, but its position is ignored.

See also

Constructors

Link copied to clipboard
constructor(periodWeight: Float?, hourWeight: Float?, minuteWeight: Float?, columnOrder: ImmutableList<TimePickerColumn> = persistentListOf( TimePickerColumn.PERIOD, TimePickerColumn.HOUR, TimePickerColumn.MINUTE ))

Properties

Link copied to clipboard
val columnOrder: ImmutableList<TimePickerColumn>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard