• Getting Started
  • Components
    • Barcodes
    • Buttons
    • Chartsupdated
    • Conversational UIupdated
    • Data Query
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Filter
    • Gantt
    • Gauges
    • Gridupdated
    • Icons
    • Indicators
    • Inputsupdated
    • Labels
    • Layout
    • ListBox
    • ListView
    • Map
    • Menus
    • Navigation
    • Notification
    • Pager
    • PDF Export
    • PDFViewer
    • PivotGrid
    • Popup
    • ProgressBars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • ToolBar
    • Tooltips
    • TreeList
    • TreeView
    • Typography
    • Uploads
    • Utilities
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Sample Applications
  • FAQ
  • Troubleshooting
  • Updates
  • Changelogs
New to Kendo UI for Angular? Start a free 30-day trial

NavigationItemTemplateDirective

Used for rendering the navigation item of the Calendar. To define the navigation item template, nest an <ng-template> tag with the kendoCalendarNavigationItemTemplate directive inside the component tag. The template context is set to the current component. To get a reference to the current item value, use the let-title directive. To provide more details about the current title, get a reference to the current date by using the let-date='date' directive or get a reference to the current active view by using the let-activeView='activeView' directive.

For more examples, refer to the article on templates.

@Component({
selector: 'my-app',
styles: ['.custom { color: red; }'],
template: `
 <kendo-calendar>
   <ng-template kendoCalendarNavigationItemTemplate let-title>
     <span class="custom">{{title}}</span>
   </ng-template>
 </kendo-calendar>
`
})
export class AppComponent { }

Selector

[kendoCalendarNavigationItemTemplate]

In this article

Not finding the help you need?