modal-legacy-api.d.ts 826 B

123456789101112131415161718192021222324
  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 { Observable } from 'rxjs';
  6. export declare abstract class NzModalLegacyAPI<T, R> {
  7. abstract afterOpen: Observable<void>;
  8. abstract afterClose: Observable<R | undefined>;
  9. abstract close(result?: R): void;
  10. abstract destroy(result?: R): void;
  11. /**
  12. * Trigger the nzOnOk/nzOnCancel by manual
  13. */
  14. abstract triggerOk(): void;
  15. abstract triggerCancel(): void;
  16. /**
  17. * Return the component instance of nzContent when specify nzContent as a Component
  18. */
  19. abstract getContentComponent(): T | void;
  20. /**
  21. * Get the dom element of this Modal
  22. */
  23. abstract getElement(): HTMLElement | void;
  24. }