Dropdowns.model
property · packages/mixins-ui/src/calendar.ts:242
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:240
interface Dropdowns<Message> {
readonly model: CalendarModel
readonly onShow: (shown: Shown) => Message
readonly years?:
| {
readonly from: number
readonly to: number
}
| undefined
readonly labels?:
| {
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:242
readonly model: CalendarModelThe calendar's Model, for its names, the month shown and its bounds.
Dropdowns.onShowproperty · packages/mixins-ui/src/calendar.ts:244
readonly onShow: (shown: Shown) => MessageSent for a choice; answer it with show.
Dropdowns.yearsproperty · packages/mixins-ui/src/calendar.ts:246
readonly years?:
| {
readonly from: number
readonly to: number
}
| undefinedThe years offered; default the bounds' years, or ten either side of the year shown.
Dropdowns.labelsproperty · packages/mixins-ui/src/calendar.ts:248
readonly labels?:
| {
readonly month: string
readonly year: string
}
| undefinedThe selects' names; default Month and Year.