context-menu.service.d.ts 972 B

1234567891011121314151617181920212223
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { Overlay } from '@angular/cdk/overlay';
  6. import { EmbeddedViewRef, NgZone } from '@angular/core';
  7. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  8. import { NzDropdownMenuComponent } from './dropdown-menu.component';
  9. import * as i0 from "@angular/core";
  10. export declare class NzContextMenuService {
  11. private ngZone;
  12. private overlay;
  13. private overlayRef;
  14. private closeSubscription;
  15. constructor(ngZone: NgZone, overlay: Overlay);
  16. create($event: MouseEvent | {
  17. x: number;
  18. y: number;
  19. }, nzDropdownMenuComponent: NzDropdownMenuComponent): EmbeddedViewRef<NzSafeAny>;
  20. close(clear?: boolean): void;
  21. static ɵfac: i0.ɵɵFactoryDeclaration<NzContextMenuService, never>;
  22. static ɵprov: i0.ɵɵInjectableDeclaration<NzContextMenuService>;
  23. }