承接 zhuravljov/yii2-datetime-widgets 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

zhuravljov/yii2-datetime-widgets

最新稳定版本:1.1.2

Composer 安装命令:

composer require zhuravljov/yii2-datetime-widgets

包简介

Datetime widgets for Yii2.

README 文档

README

Latest Stable Version Total Downloads

Installation

The preferred way to install this extension is through composer.

Add

"zhuravljov/yii2-datetime-widgets" : "~1.1.0"

to the require section of your application's composer.json file.

DatePicker

Demo from the bootstrap-datepicker plugin website.

Usage

<?= $form->field($model, 'attribute')->widget(DatePicker::class, [
    'clientOptions' => [
        'format' => 'dd.mm.yyyy',
        'language' => 'ru',
        'autoclose' => true,
        'todayHighlight' => true,
    ],
    'clientEvents' => [],
]) ?>

DateTimePicker

Demo from the bootstrap-datetimepicker plugin website.

Usage

<?= $form->field($model, 'attribute')->widget(DateTimePicker::class, [
    'clientOptions' => [
        'format' => 'dd.mm.yyyy hh:ii',
        'language' => 'ru',
        'autoclose' => true,
    ],
    'clientEvents' => [],
]) ?>

DateRangePicker

Demo from the bootstrap-daterangepicker plugin website.

Usage

<?= $form->field($model, 'actual_time')->widget(DateRangePicker::class, [
    'clientOptions' => [
        'locale' => [
            'format' => 'YYYY-MM-DD',
            'separator' => ' - ',
        ],
        'ranges' => [
            'Today' => [
                new JsExpression('moment()'),
                new JsExpression('moment()'),
            ],
            'Yesterday' => [
                new JsExpression('moment().subtract(1, "days")'),
                new JsExpression('moment().subtract(1, "days")'),
            ],
        ],
    ],
    'clientEvents' => [],
]) ?>

统计信息

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

GitHub 信息

  • Stars: 21
  • Watchers: 4
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-02-01