2017 © Pedro Peláez
 

yii2-extension yii2-persian-datepicker

This extension will display a Persian datepicker.

image

puresoft/yii2-persian-datepicker

This extension will display a Persian datepicker.

  • Monday, November 6, 2017
  • by jtag
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

The PureSoft Persian Date Picker

This extension will display a Persian date picker., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist puresoft/yii2-persian-datepicker "~1.0"

or add, (*4)

"puresoft/yii2-persian-datepicker": "~1.0"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by:, (*6)

# Within a model
= Datepicker::widget([
    'model' => $model,
    'attribute' => 'date',
]) ?>

# Or

= $form->field($model, 'date')->widget(Datepicker::className()) ?>
# Without model
<?= Datepicker::widget([
    'name' => 'my-date-picker',
    'value' => '1373/12/17',
]) ?>

Options

Following custom options are available:, (*7)

  • size : The size of the input which must be one of ('lg', 'md', 'sm', 'xs').
  • addon : The addon markup if you wish to display the input as a component then set it to something like <i class="glyphicon glyphicon-calendar"></i>.
  • template : The template to render the input. {input} and {addon} placeholders are available.
  • inline : Whether to render the input as an inline calendar or not. It can be true or false.

The Versions

06/11 2017

dev-master

9999999-dev https://puresoftware.org

This extension will display a Persian datepicker.

  Sources   Download

MIT

The Requires

 

extension yii2 calendar date datepicker time jalali persian

06/11 2017

v1.0.2

1.0.2.0 https://puresoftware.org

This extension will display a Persian datepicker.

  Sources   Download

MIT

The Requires

 

extension yii2 calendar date datepicker time jalali persian

03/10 2017

v1.0.0

1.0.0.0 https://puresoftware.org

This extension will display a Persian datepicker.

  Sources   Download

MIT

The Requires

 

extension yii2 calendar date datepicker time jalali persian

24/09 2017

v0.5.10-beta

0.5.10.0-beta https://puresoftware.org

This extension will display a Persian datepicker.

  Sources   Download

MIT

The Requires

 

extension yii2 calendar date datepicker time jalali persian