UNPKG

@engie-group/fluid-design-system-angular

Version:

Fluid Design System Angular

40 lines (39 loc) 1.53 kB
import { DialogRef } from '@angular/cdk/dialog'; import { AfterViewInit, EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export declare class ModalComponent implements AfterViewInit { dialogRef: DialogRef; /** * Whether modal has close icon or not */ hasCloseIcon: boolean; /** * Label for the close button * @example "Close" */ closeLabel?: string; /** * Whether modal is vertically centered */ isVerticallyCentered: boolean; /** * Id of the modal. The title id will be based on this. */ modalId: string; /** * Emits void event when modal is closed via the close icon */ closed: EventEmitter<void>; /** * @param dialogRef refers to `@angular/cdk` DialogRef */ constructor(dialogRef: DialogRef); get titleId(): string; ngAfterViewInit(): void; /** * Emits closed event and calls dialogRef.close() */ closeModal(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, [{ optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "nj-modal", never, { "hasCloseIcon": { "alias": "hasCloseIcon"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "isVerticallyCentered": { "alias": "isVerticallyCentered"; "required": false; }; "modalId": { "alias": "modalId"; "required": false; }; }, { "closed": "closed"; }, never, ["[njModalTitle]", "[njModalContent]", "[njModalFooter]"], true, never>; }