phamxuanloc / yii2-jui-timepicker
Adds a timepicker widget to Yii2 JUI
Package info
github.com/phamxuanloc/yii2-jui-timepicker
Type:yii2-extension
pkg:composer/phamxuanloc/yii2-jui-timepicker
dev-master
2016-11-17 07:28 UTC
Requires
- bower-asset/jqueryui-timepicker-addon: *
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is not auto-updated.
Last update: 2026-03-12 08:29:07 UTC
README
Adds a timepicker widget to Yii2 JUI
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist phamxuanloc/yii2-jui-timepicker "*"
or add
"phamxuanloc/yii2-jui-timepicker": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= $form->field($model, 'datetime')->widget(\phamxuanloc\jui\DateTimePicker::className()) ?>
<?= $form->field($model, 'time')->widget(\phamxuanloc\jui\DateTimePicker::className(), ['timeOnly' => true]) ?>