@progress/kendo-angular-menu
Version:
Kendo UI Angular Menu component
35 lines (34 loc) • 1.48 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 { OnInit } from '@angular/core';
import { ItemsService } from '../services/items.service';
import * as i0 from "@angular/core";
/**
* Represents a directive that can be used in the [`linkTemplate`]({% slug api_menu_itemlinktemplatedirective %})
* of the items to apply the default styling and behavior.
*
* @example
* ```html
* <ng-template kendoMenuItemLinkTemplate let-item="item" let-index="index">
* <a [kendoMenuItemLink]="index">{{ item.text }}</a>
* </ng-template>
* ```
*/
export declare class LinkDirective implements OnInit {
private itemsService;
/**
* Specifies the index of the Menu item. The input is mandatory.
*/
index: string;
hostClasses: boolean;
role: string;
tabindex: string;
get activeClass(): boolean;
private item;
constructor(itemsService: ItemsService);
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LinkDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<LinkDirective, "[kendoMenuItemLink]", never, { "index": { "alias": "kendoMenuItemLink"; "required": false; }; }, {}, never, never, true, never>;
}