New to Kendo UI for AngularStart a free 30-day trial

ItemTemplateDirective

Represents a template for the Menu items (see example). To define a template for an item, nest an <ng-template> tag with the kendoMenuItemTemplate directive inside a <kendo-menu-item> component. To define a template for all Menu items, nest the template inside the <kendo-menu> component.

The available fields in the template context are:

  • item—The item data.
  • index—The item index.
ts

@Component({
   selector: 'my-app',
   template: `
       <kendo-menu>
         <kendo-menu-item text="item2">
             <ng-template kendoMenuItemTemplate let-item="item" let-index="index">
                 <div style="padding: 10px;">
                     My Template for: {{ item.text }} at index: {{ index }}
                 </div>
             </ng-template>
         </kendo-menu-item>
       </kendo-menu>
   `
})

class AppComponent {
}

Selector

[kendoMenuItemTemplate]

In this article
Selector
Not finding the help you need?
Contact Support