djabiev/yii2-clocktimepicker
Composer 安装命令:
composer require djabiev/yii2-clocktimepicker
包简介
Yii2 wrapper for clockpicker (clock-like time picker) plugin
README 文档
README
Bootstrap Yii2 widgets for clockpicker (clock-like time picker) jquery plugin
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist "djabiev/yii2-clocktimepicker:*"
or add
"djabiev/yii2-clocktimepicker": "*"
to the require section of your composer.json file.
Usage
In the view file register the asset:
use djabiev\widgets\BootstrapClockTimePicker; // with ActiveForm echo $form->field($model, 'attribute')->widget(BootstrapClockTimePicker::className() [ // extra configuration ]); // without ActiveForm and with model. echo BootstrapClockTimePicker::widget([ 'model' => $model, 'attribute' => 'time_start', ]);
Documentation
The JS options can be passed using the $clientOptions property and the events
can be declared using the $clientEvents property. The documentation on all the
options and events supported by clockpicker can be found here.
License
The BSD License (BSD). Please see License File for more information.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-01-16