1234567891011121314151617181920212223242526272829303132333435 |
- /**
- * Use of this source code is governed by an MIT-style license that can be
- * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
- */
- import { EventEmitter, OnDestroy } from '@angular/core';
- import { NzI18nService, NzModalI18nInterface } from 'ng-zorro-antd/i18n';
- import { NzModalRef } from './modal-ref';
- import { ModalButtonOptions, ModalOptions } from './modal-types';
- import * as i0 from "@angular/core";
- export declare class NzModalFooterComponent implements OnDestroy {
- private i18n;
- config: ModalOptions;
- buttonsFooter: boolean;
- buttons: ModalButtonOptions[];
- locale: NzModalI18nInterface;
- readonly cancelTriggered: EventEmitter<void>;
- readonly okTriggered: EventEmitter<void>;
- modalRef: NzModalRef;
- private destroy$;
- constructor(i18n: NzI18nService, config: ModalOptions);
- onCancel(): void;
- onOk(): void;
- /**
- * Returns the value of the specified key.
- * If it is a function, run and return the return value of the function.
- */
- getButtonCallableProp(options: ModalButtonOptions, prop: keyof ModalButtonOptions): boolean;
- /**
- * Run function based on the type and set its `loading` prop if needed.
- */
- onButtonClick(options: ModalButtonOptions): void;
- ngOnDestroy(): void;
- static ɵfac: i0.ɵɵFactoryDeclaration<NzModalFooterComponent, never>;
- static ɵcmp: i0.ɵɵComponentDeclaration<NzModalFooterComponent, "div[nz-modal-footer]", ["NzModalFooterBuiltin"], { "modalRef": { "alias": "modalRef"; "required": false; }; }, { "cancelTriggered": "cancelTriggered"; "okTriggered": "okTriggered"; }, never, never, true, never>;
- }
|