dev-master
9999999-devYii2 extension for showLoading jQuery plugin
MIT
The Requires
by Alexander Stepanov
by Jim Keller
plugin yii2 jquery ajax widget showloading
Yii2 extension for showLoading jQuery plugin
Yii2 extension for showLoading jQuery plugin
Yii2 extension page
Codepen demo page, (*1)
Plugin provides a neat way of overlaying loading indicator over arbitrary content (e.g. during ajax calls)., (*2)
Simply add extension to your composer.json: ``` js { "require": { "nirvana-msu/yii2-showloading": "1.0.*@dev" } }, (*3)
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: ``` php use nirvana\showloading\ShowLoadingAsset; ShowLoadingAsset::register($this);
To show / hide loading indicator, simply call showLoading()
/ hideLoading()
methods:
js
$('#my-content-panel-id').showLoading();
$('#my-content-panel-id').hideLoading();
, (*4)
Extension is released under MIT license., (*5)
Underlying jQuery plugin license:, (*6)
jQuery showLoading plugin v1.0, (*7)
Copyright (c) 2009 Jim Keller
Context - http://www.contextllc.com, (*8)Dual licensed under the MIT and GPL licenses., (*9)
Yii2 extension for showLoading jQuery plugin
MIT
plugin yii2 jquery ajax widget showloading