UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

33 lines (32 loc) 1.08 kB
import { ToastMessageOptions } from './toastmessage'; import * as i0 from "@angular/core"; /** * Message service used in messages and toast components. * @group Service */ export declare class MessageService { private messageSource; private clearSource; messageObserver: import("rxjs").Observable<ToastMessageOptions | ToastMessageOptions[]>; clearObserver: import("rxjs").Observable<string>; /** * Inserts single message. * @param {ToastMessageOptions} message - Message to be added. * @group Method */ add(message: ToastMessageOptions): void; /** * Inserts new messages. * @param {Message[]} messages - Messages to be added. * @group Method */ addAll(messages: ToastMessageOptions[]): void; /** * Clears the message with the given key. * @param {string} key - Key of the message to be cleared. * @group Method */ clear(key?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>; }