nirvana-msu/yii2-showloading
Composer 安装命令:
composer require nirvana-msu/yii2-showloading
包简介
Yii2 extension for showLoading jQuery plugin
README 文档
README
Yii2 extension for showLoading jQuery plugin
Yii2 extension page
Codepen demo page
Plugin provides a neat way of overlaying loading indicator over arbitrary content (e.g. during ajax calls).
Installation
Composer
Simply add extension to your composer.json:
{ "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:
$('#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.comDual licensed under the MIT and GPL licenses.
统计信息
- 总下载量: 96.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-11