BinarCode/vue-notifyjs

close all notifications manually

jvizcaya opened this issue · 4 comments

please, how can I close all notifications manually ... there is currently a function that allows to do that?

@amandiobm thank you for answering, I'll try to find a solution considering your writing, if I can do that I'll share it here, if you can find a solution I'll be grateful for your help. regards!

Hello @jvizcaya . @amandiobm is pointing in the right direction
There is a mini store where all notifications are saved.
https://github.com/cristijora/vue-notifyjs/blob/master/src/index.js#L4

You can access it via this.$notitifcations and either call the methods there or access the state.
Knowing that you can iterate over the array and simply remove the notificaitons.
https://jsfiddle.net/CristiJ/z11fe07p/2799/

@cristijora great!! is what I needed ... thank you very much for your help, I have solved it with the example you have given me!