@neocomplexx/ngx-neo-modal
Version:
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.5.
48 lines (47 loc) • 1.46 kB
TypeScript
import { AlertResult, AlertButton } from './ngx-neo-modal.component';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
export declare class NgxNeoModalService {
private modalService;
template: any;
originalAlert: any;
constructor(modalService: NgbModal);
private openModal;
/**
* Show message. Can be use as window.alert
*/
alert(msg: string, autofocus?: boolean): Promise<void>;
/**
*
* Show succsessfull message
*/
success(msg: string, autofocus?: boolean): Promise<AlertResult>;
/**
*
* Warning message
*/
warning(msg: string, autofocus?: boolean): Promise<AlertResult>;
/**
*
* Error message
*/
error(msg: string, autofocus?: boolean): Promise<AlertResult>;
/**
*
* Information message
*/
info(msg: string, autofocus?: boolean): Promise<AlertResult>;
/**
*
* Show decission modal with question and two options for accept or reject.
*/
decision(questionMsg: string, successMsg?: string, cancelMsg?: string, autofocus?: AlertButton): Promise<AlertResult>;
/**
*
* Input text message
*/
input(title: string, placeholder: string, successMsg?: string, autofocus?: boolean, buttonAutofocus?: AlertButton): Promise<AlertResult>;
yesNoCancel(title: string, message: string, buttonFocus: AlertButton): Promise<AlertResult>;
private custom;
private isObject;
private mergeDeep;
}