tab-nav-operation.component.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031
  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 { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
  6. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  7. import { NzTabNavItemDirective } from './tab-nav-item.directive';
  8. import * as i0 from "@angular/core";
  9. export declare class NzTabNavOperationComponent implements OnDestroy {
  10. cdr: ChangeDetectorRef;
  11. private elementRef;
  12. items: NzTabNavItemDirective[];
  13. addable: boolean;
  14. addIcon: string | TemplateRef<NzSafeAny>;
  15. readonly addClicked: EventEmitter<void>;
  16. readonly selected: EventEmitter<NzTabNavItemDirective>;
  17. closeAnimationWaitTimeoutId?: ReturnType<typeof setTimeout>;
  18. menuOpened: boolean;
  19. private readonly element;
  20. constructor(cdr: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>);
  21. onSelect(item: NzTabNavItemDirective): void;
  22. onContextmenu(item: NzTabNavItemDirective, e: MouseEvent): void;
  23. showItems(): void;
  24. menuVisChange(visible: boolean): void;
  25. getElementWidth(): number;
  26. getElementHeight(): number;
  27. ngOnDestroy(): void;
  28. static ɵfac: i0.ɵɵFactoryDeclaration<NzTabNavOperationComponent, never>;
  29. static ɵcmp: i0.ɵɵComponentDeclaration<NzTabNavOperationComponent, "nz-tab-nav-operation", ["nzTabNavOperation"], { "items": { "alias": "items"; "required": false; }; "addable": { "alias": "addable"; "required": false; }; "addIcon": { "alias": "addIcon"; "required": false; }; }, { "addClicked": "addClicked"; "selected": "selected"; }, never, never, true, never>;
  30. static ngAcceptInputType_addable: unknown;
  31. }