iao-alert

iao alert

Most flexible Jquery alert plugin with maximum number of customizations available.

Meta Data

Plugin Name: iao alert
Key: iao-alert
Version: 1.0.7
Author: Prashant Kapoor
Website: http://itsallonly.github.io/iao-alert
Repo: https://github.com/Itsallonly/iao-alert
Issues: https://github.com/Itsallonly/iao-alert/issues
Files: iao-alert.jquery.js, iao-alert.css
Dependency: Jquery

Use

Alert can be invoked in two ways:
1.$.iaoAlert({ msg: "This is demo iao alert message." });
2.$.fn.iaoAlert({msg: "This is demo iao alert message."});

Customization

4 type of alerts can be made:

NOTE: The Default alert type is “notification”

2 modes of designs in iao alerts:

NOTE: The Default alert mode is “light”

Disable auto hide:

By default iao alert hide automatically after a few seconds to disable that use autoHide : false -
SYNTAX -
$.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: false });

Change alert display time:

By defalt iao alert display time is ‘3 seconds(3000 milliseconds)’, it can be changed with ‘alertTime’ -
SYNTAX -
$.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000" });

Change alert fade out time:

By defalt iao alert fade out time is ‘500 milliseconds’, it can be changed with ‘fadeTime’ -
SYNTAX -
$.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000" });

NOTE: If fadeTime is set to 0 then it fadeout effect will not be visible.

Remove Close button:

iao alert has close button in right to hide alert message on click, it can be disabled with ‘closeButton: false’-
SYNTAX -
$.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false });

Close alert on click:

iao alert can be closed when clicked on it using ‘closeOnClick: true’, by default it is set to false-
SYNTAX -
$.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true });

Fade alert message on hover:

It appears nice to have a hover effect, it can be used in iao alert with ‘fadeOnHover: true’-
SYNTAX -
$.iaoAlert({ msg: "This is demo iao alert message.", type: "success", mode: "dark", autoHide: true, alertTime: "5000", fadeTime: "1000", closeButton: false, closeOnClick: true, fadeOnHover: true });

Positioning

BY default iao alert message display on the top right corner of screen, it can be shown in 4 positions on screen