yearMonthPickerItems

fun yearMonthPickerItems(yearItems: List<Int> = YEAR_RANGE, monthItems: List<Int> = MONTH_RANGE, minYearMonth: YearMonth? = null, maxYearMonth: YearMonth? = null): YearMonthPickerItems

Creates selectable item lists for a year-month picker.

Return

A YearMonthPickerItems instance with the specified item lists.

Parameters

yearItems

Year values available for selection. Values must be in 1000..9999.

monthItems

Month values available for selection. Values must be in 1..12.

minYearMonth

The earliest selectable year/month, inclusive. Pass null to omit the lower bound.

maxYearMonth

The latest selectable year/month, inclusive. Pass null to omit the upper bound.