https://github.com/hadi-aj/yii2-pwtdatepicker
https://github.com/hadi-aj/yii2-pwtdatepicker
datapicker jalali-calendar jalali-date-picker persian-calendar yii2-extension
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hadi-aj/yii2-pwtdatepicker
- Owner: hadi-aj
- Created: 2018-01-24T18:53:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T10:51:10.000Z (over 7 years ago)
- Last Synced: 2025-02-28T19:19:41.250Z (2 months ago)
- Topics: datapicker, jalali-calendar, jalali-date-picker, persian-calendar, yii2-extension
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Persian Date Picker for Yii2
======================
This Date picker widget work with Iranian calendar, based on [Persian Date Picker](https://github.com/babakhani/pwt.datepicker)Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require hadi-aj/yii2-pwt-datepicker "*"
```or add
```
"hadi-aj/yii2-pwt-datepicker": "*"
```to the require section of your `composer.json` file.
Usage
------------```php
use hadiaj\pwtdatepicker\PwtDatepicker;// Normal select with ActiveForm & model
echo $form->field($model, 'date')->widget(PwtDatepicker::classname(), [
'pluginOptions' => [
'initialValue' => TRUE,
...
],
]);// PwtDatepicker without model
echo PwtDatepicker::widget([
'pluginOptions' => [
'initialValue' => TRUE,
...
],
]);
```
Please, check the [Persian Date Picker documentation](https://github.com/babakhani/pwt.datepicker#options-table) for further information about its configuration options.License
------------
Freely distributable under the terms of the [WTFPL](http://www.wtfpl.net/) license.