simacms / yii2-jalali-datepicker
This extension is Jalali Bootstrap DatePicker
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/persian-datepicker: ^v1.1.3
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2024-11-24 06:10:03 UTC
README
This extension is Jalali Bootstrap DatePicker
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist farsidesign/yii2-jalali-datepicker "dev-master"
or add
"farsidesign/yii2-jalali-datepicker": "dev-master"
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, 'time')->widget(\farsidesign\jalalidatepicker\DatePicker::classname(), [ //'theme' => 'blue', 'clientOptions' => [ 'format' => 'YYYY/MM/DD', 'class' => 'form-control', ] ]) ?>```