admin管理员组

文章数量:1336281

I have notifications popping up in my application, I want when new notification es, the old one to hide (I don't want two notifications to show at the same time).

How to get that effect with toastr?

I have notifications popping up in my application, I want when new notification es, the old one to hide (I don't want two notifications to show at the same time).

How to get that effect with toastr?

Share Improve this question edited Dec 7, 2016 at 9:48 gonsalu 3,1942 gold badges19 silver badges19 bronze badges asked Dec 6, 2016 at 18:24 V.DimitrovV.Dimitrov 1091 silver badge5 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

You could use the clear function :

toastr.clear();

Hope this will helps you.

Source : officiel documentation.

本文标签: javascriptHow to hide notification when new one comes up with toastrStack Overflow