contextmenu.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { ElementRef, AfterViewInit, OnDestroy, Renderer2, NgZone, EventEmitter } from '@angular/core';
  2. import { MenuItem } from '../common/menuitem';
  3. export declare class ContextMenuSub {
  4. item: MenuItem;
  5. root: boolean;
  6. parentActive: boolean;
  7. contextMenu: ContextMenu;
  8. constructor(contextMenu: any);
  9. activeItem: any;
  10. containerOffset: any;
  11. hideTimeout: any;
  12. _parentActive: boolean;
  13. onItemMouseEnter(event: any, item: any, menuitem: any): void;
  14. itemClick(event: any, item: MenuItem): void;
  15. listClick(event: any): void;
  16. position(sublist: any, item: any): void;
  17. }
  18. export declare class ContextMenu implements AfterViewInit, OnDestroy {
  19. el: ElementRef;
  20. renderer: Renderer2;
  21. zone: NgZone;
  22. model: MenuItem[];
  23. global: boolean;
  24. target: any;
  25. style: any;
  26. styleClass: string;
  27. appendTo: any;
  28. autoZIndex: boolean;
  29. baseZIndex: number;
  30. triggerEvent: string;
  31. onShow: EventEmitter<any>;
  32. onHide: EventEmitter<any>;
  33. containerViewChild: ElementRef;
  34. parentActive: boolean;
  35. documentClickListener: any;
  36. windowResizeListener: any;
  37. triggerEventListener: any;
  38. constructor(el: ElementRef, renderer: Renderer2, zone: NgZone);
  39. ngAfterViewInit(): void;
  40. show(event?: MouseEvent): void;
  41. hide(): void;
  42. moveOnTop(): void;
  43. toggle(event?: MouseEvent): void;
  44. position(event?: MouseEvent): void;
  45. bindGlobalListeners(): void;
  46. unbindGlobalListeners(): void;
  47. onWindowResize(event: any): void;
  48. ngOnDestroy(): void;
  49. }
  50. export declare class ContextMenuModule {
  51. }