V.Dimitrov
V.Dimitrov

Reputation: 109

How to hide notification when new one comes up with toastr

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

Answers (1)

l.hussain
l.hussain

Reputation: 472

You could use the clear function :

toastr.clear();

Hope this will helps you.

Source : officiel documentation.

Upvotes: 8

Related Questions