ICalendarHeaderSlotBindings

interface
Calendar

Slot bindings injected into the #header slot of OrigamCalendar for a full toolbar replacement. Exposes view state, navigation guards and imperative callbacks so the custom header drives the calendar without extra wiring.

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.

view
requis
TCalendarView
The currently active view mode.
title
requis
string
Human-readable label for the visible period (e.g. "June 2026" or "Jun 15 – 21, 2026").
canPrev
requis
boolean
False when the previous navigation step would exceed minDate.
canNext
requis
boolean
False when the next navigation step would exceed maxDate.
setView
requis
(next: TCalendarView) => void
Imperatively switch the calendar to a different view mode.
navigate
requis
(direction: TCalendarNavigate) => void
Imperatively move the calendar forward or backward by one 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.

Custom toolbar via the #header slot

vue