![]() |
VOOZH | about |
Bootstrap 5 Toasts Methods are used to perform some specific tasks on toasts like the show, hide, etc methods. All the methods are mentioned below and described well, for brief clearance about those methods.
Toasts are a type of alert box that is used to show a message or an update to the user. For example, submitting a form, clicking a button, or maybe a push notification inside the website. The alert box type of toast is shown for a couple of seconds.
Bootstrap 5 Toasts methods:
Syntax:
toast.toast_method()Below example illustrate the Bootstrap 5 Toasts Methods:
Example 1: In this example, we will see the effect of the show() method.
Output:
Example 2: In this example, we will see the effect of the hide() method.
Output:
Reference:https://getbootstrap.com/docs/5.0/components/toasts/#methods