import { OnInit, EventEmitter } from '@angular/core'; import { Observable } from 'rxjs'; import { ContextMenuComponent } from '@progress/kendo-angular-menu'; export declare type TreeViewLoadFunc = (parent: any, filter: string) => any[] | Observable; export interface ContextMenuItemSelectData { node: any; menuItem: any; } export declare class TreeViewComponent implements OnInit { constructor(); ngOnInit(): void; private _loadFunc; private _cache; /** private */ _firstLevelNodes: any[]; /** determines whether caching mechanism is enabled or not */ cacheNodes: boolean; /** The fields of the data item that provide the text content of the nodes */ textField: string; /** A function which determines if a node has any children */ hasChildrenFunc: (item: T) => boolean; /** A function which provides nodes */ set loadFunc(value: TreeViewLoadFunc); get loadFunc(): TreeViewLoadFunc; /** Reloads the treeview (calls loadFunc() function again to load first level items) */ reload(): void; /** private */ _childrenFunc: (item: any) => Observable; filterable: boolean; filter: string; filterPlaceholder: string; filterChange: EventEmitter; /** clears the filter */ clearFilter(): void; /** private */ _contextMenu: ContextMenuComponent; private _rightClickedItem; /** context menu items */ contextMenuItems: { text: string; icon?: string; data?: any; }[]; /** Fires when the user selects a context menu item */ contextMenuItemSelect: EventEmitter; /** private */ _onNodeClick(e: any): void; /** private */ _onMenuItemSelect({ item }: { item: any; }): void; /** A function which determines if a specific node is disabled or not */ isNodeDisabledFunc: any; /** Determines if selection functionality is enabled or not */ selectable: boolean | { enabled?: boolean; mode?: 'single' | 'multiple'; }; /** Fires when selected item changes. */ selectionChange: EventEmitter; /** Fires when a node is clicked by user */ nodeClick: EventEmitter; /** Determines if 'checkable' functionality is enabled or not */ checkable: boolean | { enabled?: boolean; mode?: 'single' | 'multiple'; checkChildren?: boolean; checkParents?: boolean; checkOnClick?: boolean; }; }