Year Month Picker Items
data class YearMonthPickerItems(val yearItems: List<Int>, val monthItems: List<Int>, val constraints: YearMonthPickerConstraints = YearMonthPickerConstraints())
Selectable item lists for io.github.kezlab.compose.pickers.date.YearMonthPicker.
Lists must be non-empty, contain distinct values, stay within their documented ranges, and contain the current state selection. constraints are applied after year and month item lists. Treat item lists as immutable after passing them to a picker; create a new YearMonthPickerItems when available values change.
Parameters
year Items
Year values available for selection. Values must be in 1000..9999.
month Items
Month values available for selection. Values must be in 1..12.
constraints
Inclusive year/month bounds applied after the year and month item lists.
See also
Constructors
Link copied to clipboard
constructor(yearItems: List<Int>, monthItems: List<Int>, constraints: YearMonthPickerConstraints = YearMonthPickerConstraints())