vue-storefront
Version:
A Vue.js, PWA eCommerce frontend
17 lines • 510 B
JSON
// 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
}