Non blocking Notification jQuery KanNotify - Download Easy Non-blocking Notification Plugin With jQuery - KanNotify.js

Download Easy Non-blocking Notification Plugin With jQuery – KanNotify.js

Posted on

This time I will share jQuery Plugin and tutorial about Easy Non-blocking Notification Plugin With jQuery – KanNotify.js, hope it will help you in programming stack.

Non blocking Notification jQuery KanNotify - Download Easy Non-blocking Notification Plugin With jQuery - KanNotify.js
File Size: 11.7 KB
Views Total: 867
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

KanNotify.js is a lightweight and easy-to-use jQuery plugin that presents your notification messages of various types with custom positions and icons.

Features:

  • Can be positioned anywhere on the webpage via CSS.
  • 5 notificaiton types: success, error, info, warning and default.
  • Supports any iconic font. E.g. Font Awesome.
  • Allows to auto dismiss after a specific timeout.

How to use it:

1. To get started, you need to load jQuery and the jQuery KanNotify.js plugin’s files in the document as shown below:

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <link rel="stylesheet" href="kanNotify.css">
3 <script src="jquery.kanNotify.js"></script>

2. Load the Font Awesome for the notification icons (OPTIONAL).

1 <link rel="stylesheet" href="font-awesome.min.css">

3. Create a basic notification with custom message:

1 $.kanNotify.add('Message Here');
2 // or
3 $.kanNotify.add({msg:'Message Here'});

4. The JavaScript to close the notifications manually:

1 // close a notification with a fadeOut effect
2 $.kanNotify.close(itemId,fade);
3  
4 // close all the notifications
5 $.kanNotify.closeAll();

5. More API methods:

1 $.kanNotify.success('Success Message Here');
2 $.kanNotify.error('Error Message Here');
3 $.kanNotify.warning('Warning Message Here');
4 $.kanNotify.info('Information Message Here');

6. All default options to customize the notification plugin.

01 $.kanNotify.add({
02  
03   // custom position
04   position:{"right":5,"bottom":50},
05  
06   // enable fade effect
07   fade : false,
08  
09   // animation speed
10   fade_out_speed: 300,
11  
12   // timeout
13   auto_dismiss:4000,
14  
15   // is dismissable
16   allow_dismiss : true,
17  
18   // wrapper's width
19   wrapperWidth : "auto",
20  
21   // notification type
22   type:'default',
23  
24   // custom icons
25   iconDefault : {'info':'fa-info-circle','error':'fa-exclamation-circle','success':'fa-check-circle','warning':'fa-warning','default':'fa-chevron-circle-right','debug':'fa-bug'}
26    
27 });

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

source : jqueryscript.net