filsh / yii2-datepicker
Datepicker active form field for yii2 framework
dev-master
2016-03-01 14:04 UTC
Requires
- bower-asset/bootstrap-datepicker: 1.4.0
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-10-29 04:30:54 UTC
README
Datepicker active form field for yii2 framework
Dependencies
https://github.com/Filsh/bootstrap-datepicker
Usage
for active form
<?= $form->field($model, 'datetime', [ 'class' => 'filsh\datepicker\ActiveField', 'options' => ['class' => 'input-group'], 'inputOptions' => [ 'class' => 'form-control', 'placeholder' => $model->getAttributeLabel('datetime') ], 'clientOptions' => [ 'format' => 'mm/dd/yyyy' ], 'addon' => [ 'class' => 'input-group-addon', 'content' => '<span class="flaticon-small58"></span>' ] ])->datepickerInput() ?>