Marks an ng-template as the content template of the calendar day cells.

Remarks

The template replaces the default content (the day number) of each visible day cell. Selection, keyboard navigation, ARIA attributes and state styling stay on the day cell. The template text is announced as the day cell description and the template should not contain focusable elements.

Example

<igx-calendar>
    <ng-template igxCalendarDay let-date let-selected="selected">
        <span>{{ date.getDate() }}</span>
    </ng-template>
</igx-calendar>
new IgxCalendarDayTemplateDirective(): IgxCalendarDayTemplateDirective

Returns IgxCalendarDayTemplateDirective

Narrows the type of the template context.

ngTemplateContextGuard(_directive: IgxCalendarDayTemplateDirective, _context: unknown): _context

Defined in projects/igniteui-angular/calendar/src/calendar/calendar.directives.ts:205

Parameters

Returns _context

Example

<ng-template igxCalendarDay let-date>{{ date.getDate() }}</ng-template>