jquery-loading-overlay

WebJar for jquery-loading-overlay

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

jquery-loading-overlay
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

jquery-loading-overlay
WebJar for jquery-loading-overlay
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jgerigmeyer/jquery-loading-overlay

Download jquery-loading-overlay

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/jquery-loading-overlay/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>jquery-loading-overlay</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/jquery-loading-overlay/
implementation 'org.webjars.bower:jquery-loading-overlay:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.bower/jquery-loading-overlay/
implementation ("org.webjars.bower:jquery-loading-overlay:1.0.2")
'org.webjars.bower:jquery-loading-overlay:jar:1.0.2'
<dependency org="org.webjars.bower" name="jquery-loading-overlay" rev="1.0.2">
  <artifact name="jquery-loading-overlay" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='jquery-loading-overlay', version='1.0.2')
)
libraryDependencies += "org.webjars.bower" % "jquery-loading-overlay" % "1.0.2"
[org.webjars.bower/jquery-loading-overlay "1.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : jquery jar [0,)

Project Modules

There are no modules declared in this project.

Loading Overlay

Build Status Built with Grunt

jQuery Loading Overlay Plugin

Uses Javascript to add/remove a loading overlay to a target element. It can be called on any element that should receive the loading overlay, and accepts options for class selectors and loading overlay text. The overlay itself must be styled via CSS.

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/loading-overlay.min.js"></script>
<script>
jQuery(function($) {
  // Calling the plugin
  // (prepends a div.loading to the target element)
  $('#target').loadingOverlay();

  // Removing the loading overlay
  $('#target').loadingOverlay('remove');
});
</script>

Demo

See a working example of the loading-overlay in action, both with and without CSS styling.

Documentation

Available options, explictly set to their defaults:

$('#target').loadingOverlay({
  loadingClass: 'loading',          // Class added to target while loading
  overlayClass: 'loading-overlay',  // Class added to overlay (style with CSS)
  spinnerClass: 'loading-spinner',  // Class added to loading overlay spinner
  iconClass: 'loading-icon',        // Class added to loading overlay spinner
  textClass: 'loading-text',        // Class added to loading overlay spinner
  loadingText: 'loading'            // Text within loading overlay
});

NOTE: If loadingClass or overlayClass options are passed when initializing the loading overlay, the same options must be passed when removing that overlay:

$('#target').loadingOverlay('remove', {
  loadingClass: 'loading',
  overlayClass: 'loading-overlay'
});

Release History

  • 1.0.2 - (02/19/2014) Add bower.json
  • 1.0.1 - (10/13/2013) Don't allow duplicate loading-overlays
  • 1.0.0 - (10/11/2013) Initial release

Versions

Version
1.0.2