Customizable Toast Notification Javascript Library | Toaster

A toaster is a library that provides a simple, fast, and efficient way to create a toasted notification JavaScript library to create customizable and clean on-page alert popups.

Note: On some mobile devices, in browsers like Google Chrome (with the top navigation bar), the toast in the top center is buggy.

Features:

  • 4 types of notifications: info, warning, error, and success.
  • 6 groups placement and placement.
  • Execute a callback after rejecting the toast.

Must Read: jQuery Widget To Show Android Like Toast Notification In Web App

How to make use of it:

1. Load the Toaster’s JavaScript and CSS information within the doc.

<link rel="stylesheet" href="toaster/toaster.css" />
<script src="toaster/toaster.js"></script>

2. Show a default toast message on the web page.

new Toaster({
    msg: "Toast Message Here"
})

3. Add a header to the toast message.

new Toaster({
    msg: "Toast Message Here",
    header: "Toast Header",
})

4. Set the notification sort: info (default), warning, error, success.

new Toaster({
    msg: "Toast Message Here",
    type: "error",
})

5. Determine how long the toast message lasts.

new Toaster({
    msg: "Toast Message Here",
    duration: 3
})

6. Specify the time to wait earlier than displaying the toast message.

new Toaster({
    msg: "Toast Message Here",
    delay: 1
})

7. Set the place of the toast message.

new Toaster({
    msg: "Toast Message Here",
    alignment: "left", // left|right|center
    position: "top", // top|bottom
})

8. Apply rounded borders to the toast message.

new Toaster({
    msg: "Toast Message Here",
    borders: "round",
})

9. Override the default styles.

new Toaster({
    msg: "Toast Message Here",
    colors: {
      warning: "#E78D0D",
      error: "#E43423",
      info: "#1469F5",
      success: "#3BE515",
    },
})

10. Perform a function when the toast message dismisses.

new Toaster({
    msg: "Toast Message Here",
    whenEnded: (()=>{}),
})

See Also –

Simple and Easy Toast Notification Popup With JavaScript
Ngx Snackbar Toast Notifications For Angular
Light, Easy and Beautiful Toast Notification Library | Vue Toastification


See Demo And Download

Official Website(RomaDev94): Click Here

This superior jQuery/javascript plugin is developed by RomaDev94. For extra advanced usage, please go to the official website.

Related Posts

bootstrap-dropdown-on-hover

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Bootstrap-4-Toast-Notification-Plugin

Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Audio-Visualizations-Wave

How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…

Leave a Reply

Your email address will not be published. Required fields are marked *