New to Kendo UI for Angular? Start a free 30-day trial
NavigationItemTemplateDirective
A directive for customizing the navigation items in the Calendar component.
This directive allows you to define a custom template for rendering the content of navigation items in the Calendar header. The template context provides access to the title, current date, and active view.
Template Context Variables:
title
- The formatted title text for the navigation itemdate
- The Date object representing the current navigation contextactiveView
- The current active view of the Calendar
For more examples, refer to the article on templates.
html
<kendo-calendar>
<ng-template kendoCalendarNavigationItemTemplate let-title let-date="date">
<span class="custom">{{title}} - {{date | date:'yyyy'}}</span>
</ng-template>
</kendo-calendar>
Selector
[kendoCalendarNavigationItemTemplate]