Dropdowns.model
property · packages/mixins-ui/src/calendar.ts:291
readonly model: CalendarModelThe calendar's Model, for its names, the month shown and its bounds.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/calendar.ts:289
interface Dropdowns<Message> {
readonly model: CalendarModel
readonly onShow: (shown: Shown) => Message
readonly years?:
| {
readonly from: number
readonly to: number
}
| undefined
readonly month?: 'select' | 'label' | undefined
readonly words?:
| {
readonly month?: string
readonly year?: string
}
| undefined
}The month and year selects in place of the heading.
Dropdowns.modelproperty · packages/mixins-ui/src/calendar.ts:291
readonly model: CalendarModelThe calendar's Model, for its names, the month shown and its bounds.
Dropdowns.onShowproperty · packages/mixins-ui/src/calendar.ts:293
readonly onShow: (shown: Shown) => MessageSent for a choice; answer it with show.
Dropdowns.yearsproperty · packages/mixins-ui/src/calendar.ts:295
readonly years?:
| {
readonly from: number
readonly to: number
}
| undefinedThe years offered; default the bounds' years, or ten either side of the year shown.
Dropdowns.monthproperty · packages/mixins-ui/src/calendar.ts:297
readonly month?: 'select' | 'label' | undefinedlabel writes the month as text and leaves only the years a select; default select.
Dropdowns.wordsproperty · packages/mixins-ui/src/calendar.ts:299
readonly words?:
| {
readonly month?: string
readonly year?: string
}
| undefinedThe selects' names; default Month and Year.