1 | import { EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
2 | import { NodeMenuService } from './node-menu.service';
|
3 | import { NodeMenuItemAction, NodeMenuItemSelectedEvent } from './menu.events';
|
4 | import * as i0 from "@angular/core";
|
5 | export declare class NodeMenuComponent implements OnInit, OnDestroy {
|
6 | private renderer;
|
7 | private nodeMenuService;
|
8 | menuItemSelected: EventEmitter<NodeMenuItemSelectedEvent>;
|
9 | menuItems: NodeMenuItem[];
|
10 | menuContainer: any;
|
11 | availableMenuItems: NodeMenuItem[];
|
12 | private disposersForGlobalListeners;
|
13 | constructor(renderer: Renderer2, nodeMenuService: NodeMenuService);
|
14 | ngOnInit(): void;
|
15 | ngOnDestroy(): void;
|
16 | onMenuItemSelected(e: MouseEvent, selectedMenuItem: NodeMenuItem): void;
|
17 | private closeMenu;
|
18 | static ɵfac: i0.ɵɵFactoryDeclaration<NodeMenuComponent, never>;
|
19 | static ɵcmp: i0.ɵɵComponentDeclaration<NodeMenuComponent, "node-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; }, { "menuItemSelected": "menuItemSelected"; }, never, never, false, never>;
|
20 | }
|
21 | export interface NodeMenuItem {
|
22 | name: string;
|
23 | action: NodeMenuItemAction;
|
24 | cssClass?: string;
|
25 | }
|