drawer-ref.d.ts 1.3 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 { ComponentRef, TemplateRef } from '@angular/core';
  6. import { Observable } from 'rxjs';
  7. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  8. import { NzDrawerPlacement } from './drawer-options';
  9. export declare abstract class NzDrawerRef<T = NzSafeAny, R = NzSafeAny> {
  10. abstract afterClose: Observable<R | undefined>;
  11. abstract afterOpen: Observable<void>;
  12. abstract close(result?: R): void;
  13. abstract open(): void;
  14. abstract getContentComponent(): T | null;
  15. abstract getContentComponentRef(): Readonly<ComponentRef<T>> | null;
  16. abstract nzClosable?: boolean;
  17. abstract nzNoAnimation?: boolean;
  18. abstract nzMaskClosable?: boolean;
  19. abstract nzKeyboard?: boolean;
  20. abstract nzMask?: boolean;
  21. abstract nzTitle?: string | TemplateRef<{}>;
  22. abstract nzPlacement?: NzDrawerPlacement;
  23. abstract nzMaskStyle?: object;
  24. abstract nzBodyStyle?: object;
  25. abstract nzWrapClassName?: string;
  26. abstract nzWidth?: number | string;
  27. abstract nzHeight?: number | string;
  28. abstract nzZIndex?: number | string;
  29. abstract nzOffsetX?: number | string;
  30. abstract nzOffsetY?: number | string;
  31. }