ItemActionsTemplateDirective
Directive
Represents a template for trailing actions in Menu items. To define a template for one item, nest an <ng-template>
tag with the kendoMenuItemActionsTemplate directive inside a <kendo-menu-item> component. To define a template for
all items, nest the template inside a <kendo-menu> or <kendo-contextmenu> component.
A template defined inside a <kendo-menu-item> takes precedence over a common template defined inside a
<kendo-menu> or <kendo-contextmenu>.
The template context exposes:
item—The current item.index—The item index.
Definition
Package:@progress/kendo-angular-menu
Selector:[kendoMenuItemActionsTemplate]
Syntax:
html
<kendo-menu-item text="Save">
<ng-template kendoMenuItemActionsTemplate let-item="item" let-index="index">
<span>{{ item.text }}: {{ index }}</span>
</ng-template>
</kendo-menu-item>