russ666/yii2-countdown
最新稳定版本:0.2
Composer 安装命令:
composer require russ666/yii2-countdown
包简介
jQuery countdown widget for Yii2
README 文档
README
download
Download latest version
composer
add this line to your composer.json
"russ666/yii2-countdown": "*"
Usage
echo \russ666\widgets\Countdown::widget([ 'id' => 'some-id', 'datetime' => date('Y-m-d H:i:s O', time() + 1000), 'format' => '\<span style=\"background: red\"\>%M</span>:%S', 'tagName' => 'span', 'events' => [ 'finish' => 'function(){location.reload()}', ], ])
Params
id
Container id.
datetime
Datetime string to countdown. Must be added with timezone, to prevent client-server timezone difference issue.
format
Datetime format for widget (http://hilios.github.io/jQuery.countdown/documentation.html#formatter)
events
Widget events (http://hilios.github.io/jQuery.countdown/documentation.html#events)
options
Container html options.
tagName
Container tag name.
Plugin pages
Homepage - http://hilios.github.io/jQuery.countdown
统计信息
- 总下载量: 98.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-04