IDay

interface
Date & Time

Data shape for a single day cell in the Calendar grid. Carries display strings, boolean flags for all calendar states (selected, disabled, adjacent, etc.) and the raw adapter date value.

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
unknown
Raw adapter date value for this cell.
isoDate
requis
string
ISO-8601 date string (YYYY-MM-DD) for this cell.
formatted
requis
string
Adapter-formatted display string for the day number.
year
requis
number
Four-digit year of this cell.
month
requis
number
Zero-based month index of this cell.
isDisabled
requis
boolean
True when the day is outside the allowed date range.
isWeekStart
requis
boolean
True when the day is the first day of a week row.
isWeekEnd
requis
boolean
True when the day is the last day of a week row.
isToday
requis
boolean
True when the day corresponds to today's date.
isAdjacent
requis
boolean
True when the day belongs to the previous or next month (overflow cell).
isHidden
requis
boolean
True when the cell should be visually hidden.
isStart
requis
boolean
True when the day is the start of a selected range.
isSelected
requis
boolean
True when the day is the selected date or within a selected range.
isEnd
requis
boolean
True when the day is the end of a selected range.
isSame
requis
boolean
True when start and end of the range land on the same day.
localized
requis
string
Locale-aware display string for the day number (e.g. "١" in Arabic).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Consuming IDay in a calendar slot

typescript