ngx-toasty
Version:
Angular Toasty component shows growl-style alerts and messages for your web app
21 lines (20 loc) • 665 B
TypeScript
import { EventEmitter } from '@angular/core';
import { ToastData } from './toasty.service';
/**
* A Toast component shows message with title and close button.
*/
export declare class ToastComponent {
toast: ToastData;
clickToastEvent: EventEmitter<{}>;
closeToastEvent: EventEmitter<{}>;
/**
* Event handler invokes when user clicks on toast.
* This method emit new event into ToastyContainer to process click on toast.
*/
click($event: any): void;
/**
* Event handler invokes when user clicks on close button.
* This method emit new event into ToastyContainer to close it.
*/
close($event: any): void;
}