UNPKG

ng-toast-notify

Version:

Lightweight and flexible toast notifications for Angular

25 lines (24 loc) 1.17 kB
import { SimpleChanges } from '@angular/core'; import { ToastModel, ToastyService } from '../toasty.service'; import * as i0 from "@angular/core"; export declare class ToastyComponent { private _toastService; position: string; duration: number; capacity: number; protected toasts$: import("rxjs").Observable<ToastModel[]>; private readonly positionMap; constructor(_toastService: ToastyService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; closeToast(id: number): void; containerClass(): string[]; expires(t: ToastModel): boolean; getDurationUntilExpire(expires: number): number; onTouchStart(event: TouchEvent): void; onTouchEnd(event: TouchEvent): void; onTouchMove(event: TouchEvent): void; private localizeToastIdFromTouch; static ɵfac: i0.ɵɵFactoryDeclaration<ToastyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ToastyComponent, "toasty", never, { "position": { "alias": "position"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "capacity": { "alias": "capacity"; "required": false; }; }, {}, never, never, true, never>; }