Ngx-toastr: Global Setting to clear modal on new incoming toastr?

Created on 5 Apr 2018  路  2Comments  路  Source: scttcper/ngx-toastr

I know of the toastr.clear(), which clears all toasts.

However, I wanted to find out if there's any way to add a global setting, something like { clearOnNew: true } which would close any toasts before any new toast shows.

Currently I clear them manually which is fine. Was looking for a global setting.

Most helpful comment

screen shot 2018-04-05 at 9 55 17 am

you can setup the demo to do this and with settings

All 2 comments

screen shot 2018-04-05 at 9 55 17 am

you can setup the demo to do this and with settings

Perfect!

Was this page helpful?
0 / 5 - 0 ratings