UNPKG

vue-storefront

Version:
17 lines 510 B
// To perform notification use Event Bus and 'notification' event with below object as param // this.$bus.$emit('notification', notificationObject) { "type": "info/success/error/warning", "title": "Lorem ipsum", // The actions are defined in Notification.vue "action1": { "label": "OK", "action": "close" }, "action2": { "label": "NO", "action": "close" }, //Optional param, if its not present TTL is 5s "timeToLive": 10 }