modal-footer.component.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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 { EventEmitter, OnDestroy } from '@angular/core';
  6. import { NzI18nService, NzModalI18nInterface } from 'ng-zorro-antd/i18n';
  7. import { NzModalRef } from './modal-ref';
  8. import { ModalButtonOptions, ModalOptions } from './modal-types';
  9. import * as i0 from "@angular/core";
  10. export declare class NzModalFooterComponent implements OnDestroy {
  11. private i18n;
  12. config: ModalOptions;
  13. buttonsFooter: boolean;
  14. buttons: ModalButtonOptions[];
  15. locale: NzModalI18nInterface;
  16. readonly cancelTriggered: EventEmitter<void>;
  17. readonly okTriggered: EventEmitter<void>;
  18. modalRef: NzModalRef;
  19. private destroy$;
  20. constructor(i18n: NzI18nService, config: ModalOptions);
  21. onCancel(): void;
  22. onOk(): void;
  23. /**
  24. * Returns the value of the specified key.
  25. * If it is a function, run and return the return value of the function.
  26. */
  27. getButtonCallableProp(options: ModalButtonOptions, prop: keyof ModalButtonOptions): boolean;
  28. /**
  29. * Run function based on the type and set its `loading` prop if needed.
  30. */
  31. onButtonClick(options: ModalButtonOptions): void;
  32. ngOnDestroy(): void;
  33. static ɵfac: i0.ɵɵFactoryDeclaration<NzModalFooterComponent, never>;
  34. static ɵcmp: i0.ɵɵComponentDeclaration<NzModalFooterComponent, "div[nz-modal-footer]", ["NzModalFooterBuiltin"], { "modalRef": { "alias": "modalRef"; "required": false; }; }, { "cancelTriggered": "cancelTriggered"; "okTriggered": "okTriggered"; }, never, never, true, never>;
  35. }