0

我需要像https://scttcper.github.io/ngx-toastr按钮一样关闭所有显示的 Toasts 按钮关闭所有 Toasts。

我想知道是否有办法一次关闭所有 NbToastr?

谢谢!

4

1 回答 1

1

我已经想通了...

const toastRef: NbToastRef = this.toastrService.show(...);
toastRef.close();
于 2019-02-28T16:52:52.100 回答