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.
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.
- daterequisunknown
- Raw adapter date value for this cell.
- isoDaterequisstring
- ISO-8601 date string (YYYY-MM-DD) for this cell.
- formattedrequisstring
- Adapter-formatted display string for the day number.
- yearrequisnumber
- Four-digit year of this cell.
- monthrequisnumber
- Zero-based month index of this cell.
- isDisabledrequisboolean
- True when the day is outside the allowed date range.
- isWeekStartrequisboolean
- True when the day is the first day of a week row.
- isWeekEndrequisboolean
- True when the day is the last day of a week row.
- isTodayrequisboolean
- True when the day corresponds to today's date.
- isAdjacentrequisboolean
- True when the day belongs to the previous or next month (overflow cell).
- isHiddenrequisboolean
- True when the cell should be visually hidden.
- isStartrequisboolean
- True when the day is the start of a selected range.
- isSelectedrequisboolean
- True when the day is the selected date or within a selected range.
- isEndrequisboolean
- True when the day is the end of a selected range.
- isSamerequisboolean
- True when start and end of the range land on the same day.
- localizedrequisstring
- 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