hideToasts()
import toast from "devextreme/ui/toast/hide_toasts"
The code below uses a Button to hide all the Toast components on click.
index.html
index.js
- <div id="hide"></div>
- $("#hide").dxButton({
- text: "Hide all Toasts",
- onClick() {
- DevExpress.ui.hideToasts();
- }
- });
Feedback