hadi-aj / yii2-pwt-datepicker
Jalali datepicker
Package info
github.com/hadi-aj/yii2-pwtdatepicker
Type:yii2-extension
pkg:composer/hadi-aj/yii2-pwt-datepicker
1.0.0
2018-01-25 07:38 UTC
Requires
- bower-asset/persian-datepicker: *
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-03-01 00:24:30 UTC
README
This Date picker widget work with Iranian calendar, based on Persian Date Picker
Installation
The preferred way to install this extension is through composer.
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
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 for further information about its configuration options.
License
Freely distributable under the terms of the WTFPL license.