yii2-showloading Yii2 extension for showLoading jQuery plugin - to overlay loading indicator over arbitrary content (e.g. during ajax calls)

  1. Resources
  2. Installation
  3. Configuration
  4. Sample usage
  5. License

Yii2 extension for showLoading jQuery plugin. Provides a neat way of overlaying loading indicator over arbitrary content (e.g. during ajax calls).

Resources

Installation

Composer

Simply add extension to your composer.json: ~~~ [java] {

"require": {
    "nirvana-msu/yii2-showloading": "1.0.*@dev"
}

} ~~~ After this just update your dependencies as usual, e.g. by running composer update

Configuration

To make the plugin work you just need to register asset bundle. Either specify it as a dependency, or register directly in your view like this:

use nirvana\showloading\ShowLoadingAsset;
ShowLoadingAsset::register($this);

Sample usage

To show / hide loading indicator, simply call showLoading() / hideLoading() methods: ~~~ [java] $('#my-content-panel-id').showLoading(); $('#my-content-panel-id').hideLoading(); ~~~

License

Extension is released under MIT license.

Underlying jQuery plugin license:

jQuery showLoading plugin v1.0   

Copyright (c) 2009 Jim Keller  
Context - http://www.contextllc.com 

Dual licensed under the MIT and GPL licenses.
1 0
3 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: Nirvana
Created on: Jan 11, 2015
Last updated: 3 years ago

Related Extensions