pheme / yii2-jui-timepicker
Adds a timepicker widget to Yii2 JUI
Installs: 6 828
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 4
Open Issues: 3
Type:yii2-extension
Requires
- bower-asset/jqueryui-timepicker-addon: *
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is not auto-updated.
Last update: 2024-12-16 15:02:54 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 pheme/yii2-jui-timepicker "*"
or add
"pheme/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(\pheme\jui\DateTimePicker::className()) ?>
<?= $form->field($model, 'time')->widget(\pheme\jui\DateTimePicker::className(), ['timeOnly' => true]) ?>