readly24/yii2-air-datepicker

Air datepicker

dev-master 2018-04-14 15:21 UTC

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'
                                        ],
                                    ])?>