import { OnDestroy } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; /** * Create simple auto closing messages with icons * * SIMPLEST USE CASE * ```js * import { WasUp } from 'wickeyappstore'; * import { MatDialog, MatDialogRef } from '@angular/material'; * ... * constructor(public dialog: MatDialog) { } // and Inject MatDialog in the constructor * ... * this.dialog.open(WasUp, {data: { title: 'Review Sent', icon: 'edit', body: 'Thanks for your feedback.'} }); * ``` * icon can be any material icon -> https://material.io/icons/ * * MORE USE CASES BELOW * * Add WIDTH, SPINNER, and STAYOPEN until closed *```js * private loadingdialogRef: MatDialogRef>; * this.loadingdialogRef = this.dialog.open(WasUp, { * width: '300px', * data: { title: 'Intializing game', icon: 'spinner', body: 'Loading...', stayopen: true} * }); * // IF you use stayopen then you have to close yourself. The user CANNOT close. * ... * // CLOSE where you want - like when loading complete * this.loadingdialogRef.close(); * ``` * The MatDialog has additional properties. * By default, clicking outside the window does not close the dialog. Change by setting to false; * ```js * this.loadingdialogRef.disableClose = false; * ``` */ export declare class WasUp implements OnDestroy { dialogRef: MatDialogRef; data: any; /** * WasUp Constructor * @param dialogRef Reference to a WasUp dialog opened via the MatDialog service. * @param data The data for WasUp is as such: {title: 'title', icon: 'any_material_icon', * body: 'main message'. stayopen: boolean indicating to stay open until closed via dialogRef.close()} * @ignore */ constructor(dialogRef: MatDialogRef, data: any); /** @ignore */ ngOnDestroy(): void; /**@ignore*/ onNoClick(): void; } //# sourceMappingURL=wasup.dialog.d.ts.map