yii2-extension yii2-showloading
Yii2 extension for showLoading jQuery plugin
slimic/yii2-showloading
Yii2 extension for showLoading jQuery plugin
- Thursday, September 7, 2017
- by slimic960
- Repository
- 0 Watchers
- 0 Stars
- 0 Installations
- JavaScript
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
yii2-showloading
Installation
Composer
Simply add extension to your composer.json:
``` js
{
"require": {
"slimic960/yii2-showloading": "*"
}
}, (*1)
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 slimic960\showloading\ShowLoadingAsset;
ShowLoadingAsset::register($this);
Sample usage
To show / hide loading indicator, simply call showLoading()
/ hideLoading()
methods:
js
$('#my-content-panel-id').showLoading();
$('#my-content-panel-id').hideLoading();
, (*2)
dev-master
9999999-dev
Yii2 extension for showLoading jQuery plugin
Sources
Download
MIT
The Requires
plugin
yii2
jquery
ajax
widget
showloading