brsjs-loader

    1.3.5 • Public • Published

    Loader

    A small library for displaying and hiding loading indicators.

    NPM

    Build Status

    Installation

    npm install brsjs-loader

    Usage

    Initialize loader with

    import Loader from 'brsjs-loader';
    let loader = new Loader('id', 'type');
    

    'id' is id of your element where you want to show your loader.

    'type' is type of loader.

    Show loader with

    loader.show();
    

    Hide loader with

    loader.hide();
    

    Initialize custom loader

    let loader = new Loader('app', 'custom:nameOfClass');
    

    Loaders

    • standard
    • small-circle
    • bars
    • dots
    • custom loaders

    Show loader with

    Example

    Live example

    let loader = new Loader('app', 'standard');
    
    loader.show();
    loader.hide();
    

    Install

    npm i brsjs-loader

    DownloadsWeekly Downloads

    10

    Version

    1.3.5

    License

    MIT

    Unpacked Size

    6.41 kB

    Total Files

    6

    Last publish

    Collaborators

    • brsjsk