Skip to content

mailtodanish/LoadingIndicatorJSLibrary

Repository files navigation

LoadingIndicatorJSLibrary

LoadingIndicatorJSLibrary is a minimalist Javascript library for showing busy icon or msg on the top of any DOM element.

LoadingIndicatorJSLibrary was created because I wanted to practice writing Javascript libraries. So feel free to fork and create pull requests!

demo LoadingIndicatorJSLibrary

Find the working documentation here

Written by Mohammad Ahshan Danish.

JavaScript

display method is to display busy msg on top of the element. remove method is to remove busy msg.

<script>
        require(['./loading-indicator-min-amd.js'], function(Loading) {
            const loadingMsg = new Loading("boxesId", {
                innerText: "Please wait..."
            });


// show busy
loadingMsg.display();
// remove busy
loadingMsg.remove();

        });
    </script>

About

Loading indicator JS library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published