ICalendarDaySlotBindings

interface
Slots

Bindings handed to the #day slot of <OrigamCalendar> — one object per cell in month view, providing the date and its contextual flags (today, past, outside month, weekend, disabled).

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.

typescript

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.

date
requis
Date
The Date object this cell represents.
events
requis
Array<IEvent>
Events that fall on this date.
isToday
requis
boolean
True when the cell represents today.
isPast
requis
boolean
True when the date is in the past relative to today.
isOutside
requis
boolean
True when the cell is outside the currently displayed month (leading/trailing filler days).
isWeekend
requis
boolean
True when the day is Saturday or Sunday.
isDisabled
requis
boolean
True when the date matches a disabledDates rule.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Custom day cell in month view

html