UNPKG

ng-toast-notify

Version:

Lightweight and flexible toast notifications for Angular

28 lines (27 loc) 1.36 kB
import { SimpleChanges } from '@angular/core'; import { ToastAction, ToastModel, ToastyService, ToastType } from '../toasty.service'; import * as i0 from "@angular/core"; export declare class ToastyComponent { private _toastService; position: string; duration: number; capacity: number; grouping: boolean; protected ToastType: typeof ToastType; protected toasts$: import("rxjs").Observable<ToastModel[]>; private readonly positionMap; constructor(_toastService: ToastyService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; closeToast(id: number): void; executeAction(action: ToastAction): 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; }; "grouping": { "alias": "grouping"; "required": false; }; }, {}, never, never, true, never>; }