bootstrap-notify-simple-wrapper is a simple wrapper around bootstrap-notify (https://github.com/mouse0270/bootstrap-notify/) to make your life easier
- Obtain your copy of source code from the git repository:
git clone https://github.com/DCOD-OpenSource/bootstrap-notify-simple-wrapper.git
. Or download the latest release fromhttps://github.com/DCOD-OpenSource/bootstrap-notify-simple-wrapper/tags/
. Or install with Bowerbower install bootstrap-notify-simple-wrapper
. - Add all requirements JS and CSS files to your page.
- Add
bootstrap-notify-simple-wrapper.js
file to your page. - Configure
bootstrap-notify-simple-wrapper
on your taste by setting some global variables listed below.
messagesCumulativeDelay
Use cumulative delay to showing a message. Defaults to:
true
.messageDelay
A message showing delay (in seconds). Defaults to:
3
.messageDelayFactor
A message showing delay factor (in chars per second). Defaults to:
8
.messageIcon
Message icon css classes. Defaults to:
"fa fa-exclamation-circle"
.messageDefaultSettings
A message showing default settings. See documentation. Defaults to:
{
allow_dismiss: true,
placement: {
from: "top",
align: "right",
},
delay: 3,
mouse_over: "pause"
}
Just:
$.showMessage("Something happened wrong :(", "danger");
or
$.showMessages([{message: "Haters gonna hate.", type: "danger"}, {message: "Spice must flow!", type: "info"}]);
bootstrap-notify-simple-wrapper uses the MIT license. Please check the MIT-LICENSE file for more details.
Project website: https://github.com/DCOD-OpenSource/bootstrap-notify-simple-wrapper/
Author: Alexei Andrushievich <vint21h@vint21h.pp.ua>
For other authors list see AUTHORS file.