primevue
Version:
PrimeVue is an open source UI library for Vue 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 PrimeBloc
47 lines (43 loc) • 1.1 kB
TypeScript
/**
*
* [Live Demo](https://www.primevue.org/toast/)
*
* @module toastservice-usetoast
* @todo 'use' is not a valid name for a module. Next release will change.
*/
import type { ToastMessageOptions } from 'primevue/toast';
import { Plugin } from 'vue';
declare const plugin: Plugin;
export default plugin;
/**
* Toast Service methods.
*
* @group Model
*
*/
export interface ToastServiceMethods {
/**
* Displays the message in a suitable Toast component.
* @param {ToastMessageOptions} message - Message instance.
*/
add(message: ToastMessageOptions): void;
/**
* Clears the message.
* @param {ToastMessageOptions} message - Message instance.
*/
remove(message: ToastMessageOptions): void;
/**
* Clears the messages that belongs to the group.
* @param {string} group - Name of the message group.
*/
removeGroup(group: string): void;
/**
* Clears all the messages.
*/
removeAllGroups(): void;
}
declare module 'vue' {
interface ComponentCustomProperties {
$toast: ToastServiceMethods;
}
}