mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
21 lines
No EOL
498 B
JavaScript
21 lines
No EOL
498 B
JavaScript
import ToastEventBus from './ToastEventBus';
|
|
|
|
const ToastService = {
|
|
|
|
install: (Vue) => {
|
|
Vue.prototype.$toast = {
|
|
add: (message) => {
|
|
ToastEventBus.$emit('add', message);
|
|
},
|
|
removeGroup: (group) => {
|
|
ToastEventBus.$emit('remove-group', group);
|
|
},
|
|
removeAllGroups: () => {
|
|
ToastEventBus.$emit('remove-all-groups');
|
|
}
|
|
}
|
|
}
|
|
|
|
};
|
|
|
|
export default ToastService; |