Note that this action only works if LoadingOverlay was initialized with progress option set to true. Pass boolean value false to hide the progress bar.
Baka loader 2.0 update#
Update the progress bar with the value parameter. Note that this action only works if LoadingOverlay was initialized with some text. Pass boolean value false to hide the text element.
Update the text currently shown with the one passed to the value parameter. This is especially useful when you decide to disable the auto resize feature and you want to manually control it when you page changes. You can optionally pass a boolean parameter force to hide the LoadingOverlay even if the counter hasn’t reached 0. Hides the LoadingOverlay or decreases the counter if it’s higher than 1. Optionally you can pass a set of options, but note that they only take effect if the LoadingOverlay has not been shown yet on the element. Shows a LoadingOverlay, or increases the counter if it’s been already shown. The $.LoadingOverlay() and $(selector).LoadingOverlay() methods have five variants, corresponding to five Actions: Show Set default options for all future calls to $.LoadingOverlay() and $(selector).LoadingOverlay(). This method returns a jQuery object or a set of jQuery objects (depending on the selector used) and is chainable. $(selector).LoadingOverlay(action )Īttach the LoadingOverlay to a single DOM element or a set of DOM elements. Shows the LoadingOverlay with a fixed position, covering the whole page. There are three different methods, one to attach a LoadingOverlay to the body and thus covering the whole page, another to attach it to a single DOM element or a set of DOM elements and the last one to set the default parameters. Can show an image, some text, a progress bar or even a custom element to provide feedback to the user.Tracks a counter to allow multiple calls on single target.
Can auto resize according to its container (very useful if used over a DOM element being filled meanwhile).Shows a loading overlay on the whole page or over single DOM elements.Easy plug-and-play default behaviour yet fully configurable for advanced uses.On the CDN configuration page you can find all the available files and versions of this library, select a specific version, use range or latest version aliasing, join more files in a single request and enable subresource integrity (SRI). For more details about URL structure please refer to the official documentation.
Baka loader 2.0 install#
Npm install gasparesganga-jquery-loading-overlay Bowerīower install gasparesganga-jquery-loading-overlay CDN hosting of this library is possible thanks to jsDelivr.
Baka loader 2.0 download#
View project on GitHub or download the latest release. Buy me a coffee? jQuery LoadingOverlay A flexible loading overlay jQuery plugin Contents