@progress/kendo-angular-menu
Version:
Kendo UI Angular Menu component
45 lines (44 loc) • 1.92 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { TemplateRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Represents a template for the links of the Menu items ([see example]({% slug templates_menu %})). 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.
*
* @example
* ```ts-preview
*
* _@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 {
* }
* ```
*/
export declare class ItemLinkTemplateDirective {
templateRef: TemplateRef<any>;
constructor(templateRef: TemplateRef<any>);
static ɵfac: i0.ɵɵFactoryDeclaration<ItemLinkTemplateDirective, [{ optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemLinkTemplateDirective, "[kendoMenuItemLinkTemplate]", never, {}, {}, never, never, true, never>;
}