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> Constructors
Section titled "Constructors"IgxCalendarDayTemplateDirective
Section titled "IgxCalendarDayTemplateDirective"new IgxCalendarDayTemplateDirective(): IgxCalendarDayTemplateDirective Returns IgxCalendarDayTemplateDirective
Properties
Section titled "Properties"template
Section titled "template"template: TemplateRef<IgxCalendarDayTemplateContext> Defined in projects/igniteui-angular/calendar/src/calendar/calendar.directives.ts:192
Methods
Section titled "Methods"ngTemplateContextGuard
Section titled "ngTemplateContextGuard"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
- _directive:
IgxCalendarDayTemplateDirectiveThe directive instance.
- _context:
unknownThe template context.
Returns _context
Example
<ng-template igxCalendarDay let-date>{{ date.getDate() }}</ng-template>