chrome:shell.skip

generated:catalog.entry.calendar.title

generated:catalog.entry.calendar.description

@xngui/components/calendar
@xngui/components/calendar

chrome:demo.section

chrome:demo.preview

demo-preview:hints.category.navigation:
↑ ↓ ← →Home / End
demo-preview:hints.category.shortcuts:
Enter / Space
import { Component } from '@angular/core';
import { XCalendar } from '@xngui/components/calendar';
 
@Component({
selector: 'app-example',
imports: [XCalendar],
templateUrl: './calendar.component.html',
})
export class ExampleComponent {}

chrome:demo.events.title

chrome:demo.events.empty

chrome:demo.api.title

x-calendar

chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
mode
XCalendarMode
'single'
Single-day or date-range selection.
calendar
XCalendarSystem
'gregory'
Intl calendar identifier for month labels and navigation.
size
XSize
—
Visual size tier — falls back to XConfigService when unset.
density
XDensity
—
Spacing offsets — orthogonal to `size`; falls back to XConfigService when unset.
min
Date
—
Earliest selectable date — dates before this are disabled.
max
Date
—
Latest selectable date — dates after this are disabled.
locale
string
—
BCP 47 locale for month names and weekday labels — falls back to XLocaleService when unset.
firstDayOfWeek
number
—
First day of the week (`0` = Sunday) — falls back to the resolved locale when unset.
dateFilter
XCalendarDateFilter
—
Predicate that returns `false` for dates that cannot be selected.
ariaLabel
string
—
Accessible name for the calendar grid.
prevMonthLabel
string
—
Accessible label for the previous-month control.
nextMonthLabel
string
—
Accessible label for the next-month control.
prevYearLabel
string
—
Accessible label for the previous-year control in month view.
nextYearLabel
string
—
Accessible label for the next-year control in month view.
prevYearsLabel
string
—
Accessible label for the previous-year-page control in year view.
nextYearsLabel
string
—
Accessible label for the next-year-page control in year view.
chooseMonthLabel
string
—
Accessible label for the month-picker header button.
chooseYearLabel
string
—
Accessible label for the year-picker header button.