Q-notify programmatically close the notification
-
Hello,
I want to turn off a notification programmatically. As per api docs “Notifications are meant to be dismissed only by the user, however for exceptional cases you can do it programmatically. Especially useful when you set indefinite timeout (0).”
and then this example is given:-
const dismiss = this.$q.notify({…})
…
dismiss()Can someone explain how to make it work?
Thanks
HP -
it dismisses notication that’s assigned to your variable, if you don’t do that then your screen will be filled by same notifications. sample https://codepen.io/metalsadman/pen/KjNJrQ?editors=1011
-
Thanks, @metalsadman got you…