UNPKG

@progress/kendo-angular-menu

Version:

Kendo UI Angular Menu component

80 lines (79 loc) 3.36 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { QueryList, TrackByFunction } from '@angular/core'; import { MenuItemComponent } from './menu-item.component'; import { MenuAnimation } from './menu-animation.interface'; import { OpenOnClickSettings } from './open-on-click-settings'; import { ItemTemplateDirective } from './templates/item-template.directive'; import { ItemLinkTemplateDirective } from './templates/item-link-template.directive'; import { MenuSize } from './size'; import { PopupSettings } from './rendering/popup-settings'; import * as i0 from "@angular/core"; /** * @hidden */ export declare class MenuBase { /** * Specifies the Menu items. */ items: any[]; /** * Specifies if the Menu will be vertical ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/vertical)). */ vertical: boolean; /** * Specifies that the root items can be opened only on click * ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#opening-on-click)). */ openOnClick: boolean | OpenOnClickSettings; /** * Specifies the delay in milliseconds before the Menu items are opened or closed on item hover * or leave ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#delay-on-hover)). Used to avoid the accidental * opening or closing of the items. */ hoverDelay: number; /** * Sets the Menu animation. */ animate: boolean | MenuAnimation; /** * Sets the Menu size. * * The possible values are: * * `small` * * `medium` * * `large` * */ size: MenuSize; /** * Configures the popup settings for the Menu items. * Allows customization of the popup class and margin. */ popupSettings: PopupSettings; /** * Defines a function that determines how to track changes for the menu items. * By default, the component tracks changes by index. */ trackBy: TrackByFunction<any>; /** * @hidden */ itemTemplate: QueryList<ItemTemplateDirective>; /** * @hidden */ itemLinkTemplate: QueryList<ItemLinkTemplateDirective>; /** * @hidden */ children: QueryList<MenuItemComponent>; /** * @hidden */ get rootItems(): any[]; static ɵfac: i0.ɵɵFactoryDeclaration<MenuBase, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MenuBase, "kendo-menu-base", never, { "items": { "alias": "items"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "openOnClick": { "alias": "openOnClick"; "required": false; }; "hoverDelay": { "alias": "hoverDelay"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "size": { "alias": "size"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, {}, ["itemTemplate", "itemLinkTemplate", "children"], never, true, never>; }