Toast like Alert Popup Plugin With jQuery Bootstrap bootstrapAlert - Download Toast-like Alert Popup Plugin With jQuery and Bootstrap - bootstrapAlert

Download Toast-like Alert Popup Plugin With jQuery and Bootstrap – bootstrapAlert

Posted on

This time I will share jQuery Plugin and tutorial about Toast-like Alert Popup Plugin With jQuery and Bootstrap – bootstrapAlert, hope it will help you in programming stack.

Toast like Alert Popup Plugin With jQuery Bootstrap bootstrapAlert - Download Toast-like Alert Popup Plugin With jQuery and Bootstrap - bootstrapAlert
File Size: 5.84 KB
Views Total: 3539
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

bootstrapAlert is an easy to use jQuery plugin which helps you create Android toast-syle info/warning/success/danger alert popups using Bootstrap styles.

How to use it:

1. This plugin requires Bootstrap’s stylesheet loaded in the document’s head section.

1 <link rel="stylesheet" href="bootstrap.min.css">

2. Load jQuery library and the bootstrapAlert plugin at the end of the document.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="bootstrapAlert.js"></script>

3. Here’s a list of methods to create various types of alert popups.

01 BootstrapAlert.info({
02   title: "Info!",
03   message: "This is An info alert"
04 });
05  
06 BootstrapAlert.warning({
07   title: "Warning!",
08   message: "This is a warning alert"
09 });
10  
11 BootstrapAlert.success({
12   title: "Success!",
13   message: "This is a success alert"
14 });
15  
16 BootstrapAlert.alert({
17   title: "Danger!",
18   message: "This is a danger alert"
19 });

4. By default, the alert popups will auto dismiss after 3 seconds. You can override the default timeout in the JavaScript like this:

1 BootstrapAlert.alert({
2   title: "Danger!",
3   message: "This is a danger alert",
4   hideTimeout: 3000,
5 });

5. More configuration options with default values.

1 BootstrapAlert.alert({
2   title: "Danger!",
3   message: "This is a danger alert",
4   hideTimeout: 3000,
5   autoHide: true,
6   dissmissible: false,
7   parentClass: 'bootstrap-alert',
8   innerClass: 'bootstrap-alert-message',
9 });

This awesome jQuery plugin is developed by MantaCodeDevs. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net