@craftsjs/alert
Version:
Material alert library for angular
17 lines (16 loc) • 1.17 kB
TypeScript
import { MatDialog } from '@angular/material/dialog';
import { DialogAlertComponent } from '../components/dialog-alert/dialog-alert.component';
import * as i0 from "@angular/core";
export declare class AlertService {
private _dialog;
constructor(_dialog: MatDialog);
showSimple(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
showSuccess(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
showError(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
showInfo(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
showWarning(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
showConfirmation(title: string, message: string): import("@angular/material/dialog").MatDialogRef<DialogAlertComponent, any>;
private _open;
static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
}