The JavaScript Toast is a small, nonblocking notification pop-up. It is a readable message displayed at the bottom of the screen or at a specific target and disappears automatically after a few seconds (time out) with different animation effects. The control has various built-in options for customizing visual elements, animations, durations, and dismissing toasts.
Users can create a more interactive toast message by configuring inputs and buttons on the notification pop-up that help them react quickly (for example, reply to a chat message directly from the toast pop-up).
A normal toast notification can be designed with a plain text, and optional images, icons, inputs, and buttons. Users can load HTML content and change the content dynamically inside the toaster with templates.
The JavaScript Toast notifications control is easily positioned wherever you want using built-in positions or custom axis values (X, Y).
Users can configure different animations to show or hide the toast and the animation duration based on the content length of the notification message and reading time.
Users can dismiss all JavaScript Toast notifications using user input or timeouts. Notifications can also be dismissed by swiping or tapping them.
Users can display multiple toast notifications in a sequence (queue up) within a set duration. Also, users can change the order of a toast notification sequence to the newest on top.
Users can easily design common JavaScript Toast notifications using built-in classes such as success, warning, information, and error.
The JavaScript toast notification control can be configured with a duration time for a complete message to be read before it is hidden. You can extend the timeout dynamically after focusing on it.
Users can enable a progress bar inside the toast to track the progress of an operation and the expiration of a toast message.
Users can verify duplicate toast notifications and allow only distinct messages on the screen. They can restrict the maximum number of toasts to be displayed. Also, users can prevent toast messages from hiding and make them stick with the screen.
Customize the look and feel of the Toast by changing its fill color, background, border, and item opacity.
Developers can control the appearance and behaviors of the toast notification control, including its positioning, using a rich set of APIs.
The Toast control is also available in Blazor, React, Angular, and Vue frameworks. Check out the different Toast platforms from the links below,
Easily get started with the JavaScript Toast (HTML5 Toast) using a few simple lines of HTML and TS code, as demonstrated below. Also explore our JavaScript Toast Example that shows you how to render and configure the Toast in JavaScript.
<div style="margin: 50px;">
<!--element which is going to render-->
<div id="element"></div>
</div>
import { Toast } from '@syncfusion/ej2-notifications';
// Initialize Toast component
let toast: Toast = new Toast({
title: 'Matt sent you a friend request',
content: 'You have a new friend request yet to accept'
});
// Render initialized Toast
toast.appendTo('#element');
We do not sell the JavaScript Toaster separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the JavaScript Toaster. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
You can find our JavaScript Toaster demo, which demonstrates how to render and configure the Toast.
No, our 1,800+ components and frameworks for web, mobile, and desktop, including our JavaScript Toaster, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their Toaster control alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.