All Projects → Script47 → Toast

Script47 / Toast

Licence: mit
A Bootstrap 4.2+ jQuery plugin for the toast component

Projects that are alternatives of or similar to Toast

Bootstrap 4 Sass Gulp 4 Boilerplate
A Bootstrap 4.5.2 boilerplate with font-awesome, sass, gulp 4 tasks
Stars: ✭ 103 (-14.88%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Clean Blog
Start Bootstrap is an open source library of free Bootstrap templates and themes. All of the free templates and themes on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 1,604 (+1225.62%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Round About
A Bootstrap HTML template for creating about pages - created by Start Bootstrap
Stars: ✭ 35 (-71.07%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Resume
Start Bootstrap is an open source library of free Bootstrap themes and templates. All of the free themes and templates on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 1,642 (+1257.02%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap 3 Col Portfolio
A three column Bootstrap HTML portfolio template - created by Start Bootstrap
Stars: ✭ 82 (-32.23%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap New Age
A web app landing page theme created by Start Bootstrap
Stars: ✭ 855 (+606.61%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Vali Admin
Free Bootstrap 4 admin/dashboard template
Stars: ✭ 1,391 (+1049.59%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Sleek Dashboard
Sleek Dashboard - Free Bootstrap 4 Admin Template and UI Kit
Stars: ✭ 690 (+470.25%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Shop Item
A shop item Bootstrap HTML template created by Start Bootstrap
Stars: ✭ 76 (-37.19%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Grayscale
A multipurpose one page Bootstrap theme created by Start Bootstrap
Stars: ✭ 1,120 (+825.62%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Coreui Angularjs
CoreUI AngularJS is free AngularJS admin template based on Bootstrap 4
Stars: ✭ 101 (-16.53%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Landing Page
A responsive, Bootstrap landing page template created by Start Bootstrap
Stars: ✭ 1,275 (+953.72%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Modern Business
A multipurpose Bootstrap full website template created by Start Bootstrap
Stars: ✭ 753 (+522.31%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Material Design For Bootstrap
Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.
Stars: ✭ 9,463 (+7720.66%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Stylish Portfolio
A stylish, one page, Bootstrap portfolio theme created by Start Bootstrap
Stars: ✭ 748 (+518.18%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Bootstrap Show Modal
A Bootstrap 4 / jQuery plugin wrapper, to create modals dynamically in JavaScript
Stars: ✭ 38 (-68.6%)
Mutual labels:  jquery-plugin, bootstrap, bootstrap4
Coreui
Open Source UI Kit built on top of Bootstrap 4 and plain JavaScript without any additional libraries like jQuery
Stars: ✭ 361 (+198.35%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Scrolling Nav
An unstyled Bootstrap HTML template for creating smooth scrolling, one page websites - created by Start Bootstrap
Stars: ✭ 625 (+416.53%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap 2 Col Portfolio
A two column Bootstrap HTML portfolio template - created by Start Bootstrap
Stars: ✭ 40 (-66.94%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4
Startbootstrap Sb Admin 2
Start Bootstrap is an open source library of free Bootstrap templates and themes. All of the free templates and themes on Start Bootstrap are released under the MIT license, which means you can use them for any purpose, even for commercial projects.
Stars: ✭ 9,038 (+7369.42%)
Mutual labels:  bootstrap, bootstrap4, bootstrap-4

Toast - A Bootstrap 4.2+ jQuery plugin

About

As of Bootstrap 4.2, toasts have been introduced and the aim of this plugin is to make them easier to use.

Usage

Gloabls

Modify the global variables to apply specific rules/styles to all your toasts.

$.toastDefaults = {
    position: 'top-right', /** top-left/top-right/top-center/bottom-left/bottom-right/bottom-center - Where the toast will show up **/
    dismissible: true, /** true/false - If you want to show the button to dismiss the toast manually **/
    stackable: true, /** true/false - If you want the toasts to be stackable **/
    pauseDelayOnHover: true, /** true/false - If you want to pause the delay of toast when hovering over the toast **/
    style: {
        toast: '', /** Classes you want to apply separated my a space to each created toast element (.toast) **/
        info: '', /** Classes you want to apply separated my a space to modify the "info" type style  **/
        success: '', /** Classes you want to apply separated my a space to modify the "success" type style  **/
        warning: '', /** Classes you want to apply separated my a space to modify the "warning" type style  **/
        error: '', /** Classes you want to apply separated my a space to modify the "error" type style  **/
    }
};

Snack

A "snack" is a bitesized "toast".

$.snack(type, title, delay)

Note: The final argument delay is omitable. If omitted, the toast will remain forever.

Toast

$.toast({
    type: 'info',
    title: 'Notice!',
    subtitle: '11 mins ago',
    content: 'Hello, world! This is a toast message.',
    delay: 5000,
    img: {
        src: 'https://via.placeholder.com/20',
        class: 'rounded-0', /**  Classes you want to apply separated my a space to modify the image **/
        alt: 'Image'
    }
});

Contributing

Feel free to contribute in any of the ways outlined:

  • Submit issues/pull requests
  • Tell us how you're using this plugin in your project
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].