GithubHelp home page GithubHelp logo

gottaboy / is-loading Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hekigan/is-loading

0.0 2.0 0.0 62 KB

Simple jQuery plugin to show visual feedback when loading data or any action that would take time

Home Page: http://hekigan.github.io/is-loading/

License: MIT License

HTML 39.02% CSS 16.89% JavaScript 44.09%

is-loading's Introduction

is-loading

Simple jQuery plugin to show visual feedback when loading data or any action that would take time

Full documentation and examples here

Installation

3 options:

raw

https://github.com/hekigan/is-loading/blob/master/jquery.isloading.min.js

zip

https://github.com/hekigan/is-loading/archive/master.zip

use Bower

bower install is-loading

Quick start

Basic use:

$( "selector" ).isLoading();

Stop:

$( "selector" ).isLoading( "hide" );

Add a text in the loader and change the location

$( "selector" ).isLoading({ text: "Loading", position: "inside" });

Add a text in the loader and disable some extra elements

$( "selector" ).isLoading({
    text:       "Loading", 
    disableOthers: [
        $( "#load-in-div .btn" )
    ]
});

Use overlay:

$.isLoading({ text: "Loading" });

Use overlay on element:

$( "selector" ).isLoading({
    text:       "Loading",
    position:   "overlay"
});

Default options:

defaults = {
    'position': "right",        // right | inside | overlay
    'text': "",                 // Text to display next to the loader
    'class': "icon-refresh",    // loader CSS class
    'tpl': '<span class="isloading-wrapper %wrapper%">%text%<i class="%class% icon-spin"></i></span>',
    'disableSource': true,      // true | false
    'disableOthers': []
};

is-loading's People

Contributors

costr avatar hekigan avatar martinscholz83 avatar stanivanovpro avatar stevenjlho avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.