llama-jquery-indicator
v0.1.1
Published
Easy jQuery plugin to show indicator when loading data or any action that would take time.
Downloads
5
Maintainers
Readme
jQuery indicator
Easy jQuery plugin to show visual feedback when loading data or any action that would take time. Also can disable form elements and put an overlay an specified area or whole page.
Installation
2 options:
use Bower
bower install llama-jquery-indicator
use NPM
npm install llama-jquery-indicator --save-dev
Quick start
Basic use:
Set default options
$.indicator.setDefaults({
'appendTo': "body",
'html': '#indicator'
});
Start
$( "selector" ).indicator("show");
Stop:
$( "selector" ).indicator( "hide" );
Default options:
defaults = {
'appendTo': "body", // Place for element indicator will be append
'html': null // Element indicator code
};