hinter.js
hinter.js is a Lightweight jQuery plugin to display nice bootstrap hints.
Installation
Install with Bower:
bower install hinter.js
or npm:
npm install hinter.js
then include the javascript file on your HTML page after jquery
and bootstrap
.
<!-- ... --> <!-- ... -->
Plugin options
The plugin configuration options are the following:
- message
- the hint message
- isSuccess
- whether to display a success message or an error message
- slideUp
- the slideUp animation delay (ms)
- delay
- time (ms) the hint is meant to be shown. Set this to 0 if you don't want the hint to be disposed
- id
- the hint
id
html attribute
- the hint
- class
- one or more classes to add to the hint
Usage
There are two ways of using hinter. The first one is configuring and displaying the hint at once. Ex:
;
The second one is configuring the hint options through the nice chainable methods. Ex:
;
Or you can mix both. Ex:
;
TODO
Add more configuration options to the plugin.
License
Licensed under the incredibly permissive MIT license