readly24 / yii2-air-datepicker
Air datepicker
Installs: 91
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/air-datepicker: ^2.2
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2024-09-24 06:40:40 UTC
README
Air datepicker
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist readly24/yii2-air-datepicker "*"
or add
"readly24/yii2-air-datepicker": "*"
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, 'birth')->widget(DatePicker::className(), [ 'clientOptions' => [ 'autoClose' => true, 'dateFormat' =>'dd/mm/yyyy' ], ])?>