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!
Find the working documentation here
Written by Mohammad Ahshan Danish.
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>