Reputation: 109
I have notifications popping up in my application, I want when new notification comes, the old one to hide (I don't want two notifications to show at the same time).
How to get that effect with toastr?
Upvotes: 5
Views: 3683
Reputation: 472
You could use the clear
function :
toastr.clear();
Hope this will helps you.
Source : officiel documentation.
Upvotes: 8