loveorigami/yii2-jquery-loading
最新稳定版本:1.0
Composer 安装命令:
composer require loveorigami/yii2-jquery-loading
包简介
A wrapper around Yii2 jquery loading for using with AJAX requests
README 文档
README
A wrapper around Yii2 jQuery-loading for using with AJAX requests.
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require --prefer-dist loveorigami/yii2-jquery-loading "@dev"
or add
"loveorigami/yii2-jquery-loading": "@dev"
to the require section of your composer.json file.
Usage
In layout
echo lo\widgets\loading\JqueryLoading::widget(isset($this->params['loading']) ? $this->params['loading'] : []);
In view
$this->params['loading'] = [ 'element' => 'body', // or #my-id_element, or .my-class_element 'options' => [ 'stoppable' => true, 'theme' => 'dark', 'message' => 'Working...' // and more here http://carlosbonetti.github.io/jquery-loading ] ]
统计信息
- 总下载量: 2.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-30