定制 russ666/yii2-countdown 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub - https://github.com/hilios/jQuery.countdown

统计信息

  • 总下载量: 98.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-04