UNPKG

leaf-framework

Version:
45 lines (44 loc) 1.31 kB
import { OnInit, EventEmitter } from '@angular/core'; import { ModalDirective } from 'ngx-bootstrap/modal'; export declare class ModalMessageComponent implements OnInit { message: string; status: string; type: string; onOk: EventEmitter<boolean>; onClose: EventEmitter<any>; modal: ModalDirective; constructor(); ngOnInit(): void; /** * Mehtod that returns the modal icon to display depending of the modal status */ getIcon(): "fa-times" | "fa-info-circle" | "fa-check " | "fa-exclamation-triangle"; /** * Mehtod that returns the modal title depending of the model status */ getTitle(): "Error" | "Info" | "Success " | "Warning"; /** * Mehtod that returns the Ok title button translated */ getOkTitle(): string; /** * Method that returns the cancel title button translated */ getCancelTitle(): "Close" | "Cancel"; /** * Event that show the modal dialog */ show(): void; /** * Event that hide the modal dialog */ hide(): void; /** * Event fired when click on ok button of confirm message */ onOKEvent(): void; /** * Event fired when click on cancel or close button */ onCancelEvent(): void; }