Once again thank you for creating such an amazing and well polished plugin.
I was looking at the documentation on your site and noticed that the events need a little updating as they no longer are correct. Looking through your code I have created some updated ones below, hope it helps!
Opening
// You can compare by any option (id, class..)
document.addEventListener('iziToast-opening', function(data) {
if (data.originalEvent.detail.class === 'test') { // data.originalEvent.detail will have all toast settings.
console.info('EventListener iziToast-opening');
}
});
Hi Marcelo,
Once again thank you for creating such an amazing and well polished plugin. I was looking at the documentation on your site and noticed that the events need a little updating as they no longer are correct. Looking through your code I have created some updated ones below, hope it helps!
Opening
Opened
Closing
Closed
Keep up the good work! Aston