Toasts
Push notifications to your visitors with a toast, a lightweight and easily customizable alert message.
Last updated
Was this helpful?
Push notifications to your visitors with a toast, a lightweight and easily customizable alert message.
Last updated
Was this helpful?
Comment out the toasts initialization if you are not using them in _bootstrap.js
Toasts will automatically hide if you do not specify autohide: false.
Example #1: Trigger the toasts
First create a button to trigger the toast:
Then include your main toast:
Then you should also trigger the toasts with JS like so (Already in _toast-init.js
but commented out):
Example #2: Run toasts on page load
For running the toasts on page load, you just need to change the JS approach (Already in _toast-init.js
):