edgardmessias/yii2-nprogress
最新稳定版本:0.3.0
Composer 安装命令:
composer require edgardmessias/yii2-nprogress
包简介
Slim progress bars for Ajax'y applications. Inspired by Google, YouTube, and Medium for Yii2 Framework.
README 文档
README
Slim progress bars for Ajax'y applications. Inspired by Google, YouTube, and Medium for Yii2 Framework.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist edgardmessias/yii2-nprogress "*"
or add
"edgardmessias/yii2-nprogress": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your view code by :
<?php \edgardmessias\assets\nprogress\NProgressAsset::register($this); ?>
Customization
To change settings, simply add the following code in your configuration
'components' => [ 'assetManager' => [ 'bundles' => [ 'edgardmessias\assets\nprogress\NProgressAsset' => [ 'configuration' => [ 'minimum' => 0.08, 'showSpinner' => true, ], 'page_loading' => false, 'pjax_events' => true, 'jquery_ajax_events' => false, ], ], ], ],
Settings
configuration: The NProgress Configuration (Default:null)page_loading: Show NProgress during page loading (Default:false)pjax_events: Show NProgress for pjax:start and pjax:end events (Default:true)jquery_ajax_events: Show NProgress for ajaxStart and ajaxComplete events (Default:false)
统计信息
- 总下载量: 17.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-07-02