phamxuanloc / yii2-jui-timepicker
Adds a timepicker widget to Yii2 JUI
Installs: 3 569
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 4
Type:yii2-extension
Requires
- bower-asset/jqueryui-timepicker-addon: *
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is not auto-updated.
Last update: 2025-01-02 03:09:38 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]) ?>