ICalendarProps

interface
Data & Items

Props for calendar grid components — controls the visible month/year, selected dates, allowed-dates predicate, min/max bounds, weekday layout and adjacent-month visibility.

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.

allowedDates
Array<unknown> | ((date: unknown) => boolean)
An array of allowed date values, or a function returning true for dates that should be selectable.
disabled
boolean
Disables all date interactions.
displayValue
unknown
The date value used for display purposes (e.g. hover highlight).
date
ReadonlyArray<unknown> | Array<unknown>
Currently selected date(s).
month
number
The month currently displayed (0-indexed).
max
unknown
The maximum selectable date.
min
unknown
The minimum selectable date.
showAdjacentMonths
boolean
Show days from the previous and next months in the current grid.
year
number
The year currently displayed.
weekdays
Array<number>
Array of weekday indices to display (0 = Sunday … 6 = Saturday).
weeksInMonth
TCalendarStrategy
Strategy for computing the number of week rows in the month view.
firstDayOfWeek
number
Index of the first day of the week (0 = Sunday, 1 = Monday…).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Basic date picker with min/max

vue