UNPKG

@progress/kendo-angular-menu

Version:

Kendo UI Angular Menu component

71 lines (70 loc) 3.01 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { MenuBase } from '../menu-base'; import { BindingDirectiveBase } from './binding-directive-base'; import * as i0 from "@angular/core"; /** * Represents a directive that converts the provided flat data to [MenuItems]({% slug api_menu_menuitem %}) and binds them to the Menu. * * @example * ```html * <kendo-menu [kendoMenuFlatBinding]="flatData" [textField]="'text'" [idField]="'id'" [parentIdField]="'parentId'"> * </kendo-menu> * ``` * * @remarks * Applied to: {@link MenuComponent}. */ export declare class FlatBindingDirective extends BindingDirectiveBase { /** * Specifies the array of data which will be used to populate the Menu. */ data: any[]; /** * Defines the `text` field of the items. */ textField: string; /** * Defines the `url` field of the items. */ urlField: string; /** * Defines the `icon` field of the items. */ iconField: string | string[]; /** * Defines the `svgIcon` field of the items. */ svgIconField: string | string[]; /** * Defines the `disabled` field of the items. */ disabledField: string; /** * Defines the `cssClass` field of the items. */ cssClassField: string; /** * Defines the `cssStyle` field of the items. */ cssStyleField: string; /** * Defines the `separator` field of the items. */ separatorField: string; /** * Defines the `id` field of the items. */ idField: string; /** * Defines the parent `id` field of the items. */ parentIdField: string; constructor(menu: MenuBase); protected mapItems(items: any[]): any[]; protected createItem(dataItem: any): any; static ɵfac: i0.ɵɵFactoryDeclaration<FlatBindingDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<FlatBindingDirective, "[kendoMenuFlatBinding]", ["kendoMenuFlatBinding"], { "data": { "alias": "kendoMenuFlatBinding"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "urlField": { "alias": "urlField"; "required": false; }; "iconField": { "alias": "iconField"; "required": false; }; "svgIconField": { "alias": "svgIconField"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "cssClassField": { "alias": "cssClassField"; "required": false; }; "cssStyleField": { "alias": "cssStyleField"; "required": false; }; "separatorField": { "alias": "separatorField"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "parentIdField": { "alias": "parentIdField"; "required": false; }; }, {}, never, never, true, never>; }