Components
    • Barcodes
    • Buttons
    • Charts
    • Conversational UI
    • Data Query
    • Date Inputsupdated
    • Date Math
    • Dialogsupdated
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Filterupdated
    • Ganttupdated
    • Gauges
    • Gridupdated
    • Icons
    • Indicatorsupdated
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBox
    • ListView
    • Mapbeta
    • Menus
    • Navigationupdated
    • Notification
    • Pager
    • PDF Export
    • PivotGridupdated
    • Popup
    • ProgressBarsupdated
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • ToolBar
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Typography
    • Uploads
    • Utilitiesnew
    Styling & Themes
    Common Features
    Project Setup
    Troubleshooting
New to Kendo UI for Angular? Start a free 30-day trial

ItemLinkTemplateDirective

Represents a template for the links of the Menu items (see example). To define a template for an item, nest an <ng-template> tag with the kendoMenuItemLinkTemplate 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.

@Component({
   selector: 'my-app',
   template: `
       <kendo-menu>
         <kendo-menu-item text="item2">
             <ng-template kendoMenuItemLinkTemplate let-item="item" let-index="index">
                 <span [kendoMenuItemLink]="index">
                     {{ item.text }}
                     <span *ngIf="item.items && item.items.length" [kendoMenuExpandArrow]="index"></span>
                 </span>
             </ng-template>
         </kendo-menu-item>
       </kendo-menu>
   `
})

class AppComponent {
}

Selector

[kendoMenuItemLinkTemplate]

In this article

Not finding the help you need?