uran1980/yii2-pace-widget
最新稳定版本:0.0.2
Composer 安装命令:
composer require uran1980/yii2-pace-widget
包简介
An Yii2 widget for automatic web page progress bar.
README 文档
README
An Yii2 widget for automatic web page progress bar based on Pace javascript library.
What Pace do?
Pace will automatically monitor your ajax requests, event loop lag, document ready state, and elements on your page to decide the progress.
On ajax navigation it will begin again!
For more info see: github.hubspot.com/pace.
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
php composer.phar require uran1980/yii2-pace-widget "dev-master"
or add
"uran1980/yii2-pace-widget": "dev-master"
to the require section of your composer.json
Usage
To activate this widget add this line to you view or layout:
<?php echo uran1980\yii\widgets\pace\Pace::widget(); ?>
Available options: color, theme and paceOptions, for example:
<?php echo uran1980\yii\widgets\pace\Pace::widget([ 'color' => 'green', 'theme' => 'flash', ]); ?>
or with paceOptions (@see pace documentation for mor info):
<?php echo uran1980\yii\widgets\pace\Pace::widget([
'color' => 'blue',
'theme' => 'flash',
'paceOptions' => [
'ajax' => false,
'document' => false,
],
]); ?>
Author
Ivan Yakovlev, e-mail: uran1980@gmail.com
统计信息
- 总下载量: 5.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-08