jQuery/JS Common - Utils - ui - Methods

hideToasts()

Hides all the Toast components in the application.

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();
  • }
  • });