Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mrserg161 committed Aug 29, 2017
1 parent 16428ce commit 60efc35
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# phpstorm project files
.idea

# netbeans project files
nbproject

# zend studio for eclipse project files
.buildpath
.project
.settings
# windows thumbnail cache
Thumbs.db

Expand Down
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run

```
composer require --prefer-dist mrserg161/yii2-airdatepicker "*"
composer require --prefer-dist mrerg161/yii2-airdatepicker "*"
```

or add
Expand All @@ -21,20 +21,29 @@ or add

to the require section of your `composer.json` file.

Demo
-----

You can refer detailed documentation and demos for [AirDatePicker](http://t1m0n.name/air-datepicker/docs/) or russian docs [AirDatePicker RU](http://t1m0n.name/air-datepicker/docs/index-ru.html) widgets on usage of the extension.

Usage
-----

Once the extension is installed, simply use it in your code by :

```php
<?= $form->field($model, '_date')
<?php
use mrserg161\airdatepicker\DatePicker;
?>


<?= $form->field($model, 'date')
->widget(
DatePicker::class, [
'clientOptions' => [
'autoClose' => true,
'timepicker' => true,
]
]) ?>
]) ?>

```

0 comments on commit 60efc35

Please sign in to comment.