bakery-ui
Version:
🥖 A delicious Angular UI component library with bakery-inspired theming and Storybook integration
31 lines (30 loc) • 1.7 kB
TypeScript
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
import * as i0 from "@angular/core";
export type ToastType = 'success' | 'error' | 'warning' | 'info';
export type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
export declare class ToastNotification implements OnInit, OnDestroy {
type: ToastType;
title?: string;
message: string;
duration: number;
closable: boolean;
actionText?: string;
position: ToastPosition;
persistent: boolean;
visible: boolean;
closed: EventEmitter<void>;
action: EventEmitter<void>;
private timeoutId?;
ngOnInit(): void;
ngOnDestroy(): void;
onClose(): void;
onAction(): void;
get toastClasses(): string;
get iconClasses(): string;
get titleClasses(): string;
get messageClasses(): string;
get actionButtonClasses(): string;
get closeButtonClasses(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<ToastNotification, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ToastNotification, "toast-notification", never, { "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "actionText": { "alias": "actionText"; "required": false; }; "position": { "alias": "position"; "required": false; }; "persistent": { "alias": "persistent"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "closed": "closed"; "action": "action"; }, never, never, true, never>;
}