mrserg161 / yii2-airdatepicker
Air DatePicker widget for Yii2.
Installs: 14 473
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 0
Forks: 2
Open Issues: 1
Type:yii2-extension
Requires
- bower-asset/air-datepicker: ^2.2
- yiisoft/yii2: ^2.0.9
Requires (Dev)
- roave/security-advisories: dev-master
README
Yii2 Air DatePicker
Renders a lightweight Air DatePicker plugin for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist mrserg161/yii2-airdatepicker "*"
or add
"mrserg161/yii2-airdatepicker": "*"
to the require section of your composer.json
file.
Demo
You can refer detailed documentation and demos for AirDatePicker or russian docs AirDatePicker RU widgets on usage of the extension.
Usage
Once the extension is installed, simply use it in your code by :
<?php use mrserg161\airdatepicker\DatePicker; ?> <?= $form->field($model, 'date') ->widget( DatePicker::class, [ 'clientOptions' => [ 'autoClose' => true, 'timepicker' => true, ] ] )?>