ICalendarSlots
interface
Calendar
Slot signatures exposed by OrigamCalendar. The default toolbar can be replaced wholesale via #header, individual events via #event, day cells via #day, day column headers via #dayHeader, and empty-agenda state via #empty.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- header(bindings: ICalendarHeaderSlotBindings) => any
- Full toolbar replacement. Receives view, title, canPrev, canNext, navigate and setView.
- event(bindings: ICalendarEventSlotBindings) => any
- Custom event chip renderer. Receives the IEvent object plus isPast and isToday context flags.
- day(bindings: ICalendarDaySlotBindings) => any
- Custom day cell renderer (month view). Receives date, events array, isToday, isPast, isOutside, isWeekend, isDisabled.
- dayHeader(bindings: { date: Date }) => any
- Custom day column header (week / day views). Receives the column Date.
- empty(bindings: { view: TCalendarView }) => any
- Rendered in agenda view when no events are present for the current period.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Using the #day slot to add custom content in month cells