simacms/yii2-jalali-datepicker

This extension is Jalali Bootstrap DatePicker

dev-master 2018-03-15 15:01 UTC

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