UNPKG

1.21 kBTypeScriptView Raw
1import { EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2import { NodeMenuService } from './node-menu.service';
3import { NodeMenuItemAction, NodeMenuItemSelectedEvent } from './menu.events';
4import * as i0 from "@angular/core";
5export 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}
21export interface NodeMenuItem {
22 name: string;
23 action: NodeMenuItemAction;
24 cssClass?: string;
25}