3ch3r46 / bootui-datetimepicker
Bootstrap Datepicker and Timepicker in one extentions
1.0.0
2015-01-17 02:33 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-05 16:17:21 UTC
README
Bootstrap Datepicker and Timepicker in one extentions
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist 3ch3r46/bootui-datetimepicker "*"
or add
"3ch3r46/bootui-datetimepicker": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \bootui\datetimepicker\Datepicker::widget(); ?>
<?= \bootui\datetimepicker\Timepicker::widget(); ?>
or
<?= $form->field($model, 'attribute')->widget(Datepicker::className()); ?>
<?= $form->field($model, 'attribute')->widget(Timepicker::className()); ?>