DevExtreme v23.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.


The Toast is a widget that provides pop-up notifications.

View Demo

The Toast widget does not need to be created on the page before it can be shown. You can simply call the notify(message, type, displayTime) method with values for the message, type and displayTime options passed as the arguments.

DevExpress.ui.notify("Connection problem", "error", 3000)

If you need to specify other Toast options, call the same method, but this time pass an object as the argument. In this object, you can set any Toast option.

    message: "Connection problem",
    type: "error",
    displayTime: 3000,
    closeOnClick: true

If you are going to reuse the Toast, then create it on the page using the following code. Note that in this code, the Button widget invokes the Toast.

<div id="toastContainer"></div>
<div id="buttonContainer"></div>
$(function() {
        message: "Connection problem",
        type: "error"

        text: "Show the Toast", 
        onClick: function () {

The appearance of the Toast is predefined by its type. Depending on the mood of the message that the Toast displays, the type can be "info", "warning", "error" or "success". There is also the "custom" type that allows you to define a custom appearance for the Toast. Find more information about this in the Customize the Content article.

See Also