2017 © Pedro Peláez
 

yii2-extension yii2-jalali-daterangepicker

Date Range Picker for Bootstrap Yii2 Extension

image

faravaghi/yii2-jalali-daterangepicker

Date Range Picker for Bootstrap Yii2 Extension

  • Sunday, September 17, 2017
  • by faravaghi
  • Repository
  • 1 Watchers
  • 3 Stars
  • 61 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 11 % Grown

The README.md

Jalali Date Range Picker

Date Range Picker for Bootstrap Yii2 Extension, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Installation

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

Either run, (*4)

php composer.phar require --prefer-dist faravaghi/yii2-jalali-daterangepicker "*"

or add, (*5)

"faravaghi/yii2-jalali-daterangepicker": "*"

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

Usage

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

= 
use faravaghi\jalaliDateRangePicker\jalaliDateRangePicker;

echo $form->field(
    $model, 
    'findDate'
)
->widget(jalaliDateRangePicker::classname(),[
    'options'  => [
        'format' => 'jYYYY/jMM/jDD',
        'viewformat' => 'jYYYY/jMM/jDD',
        // 'minDate' => '1394/10/17',
        'placement' => 'right',
        'opens' => 'left',
        'showDropdowns'=> true,
        // 'timePicker' => true,
        // 'timePicker24Hour' => true,
        'locale'=>[
            'format'=> 'jYYYY/jMM/jDD',
            'separator'=> ' - ',
            'applyLabel'=> Yii::t('zii', 'Apply'),
            'cancelLabel' => Yii::t('zii', 'Cancel'),
            'fromLabel' => Yii::t('zii', 'From'),
            'toLabel' => Yii::t('zii', 'To'),
            'customRangeLabel' => 'Custom',
            'daysOfWeek'=>[
                'یک',
                'دو',
                'سه',
                'چهار',
                'پنج',
                'جمعه',
                'شنبه',
            ],
            'monthNames'=>[
                'فروردین',
                'اردیبهشت',
                'خرداد',
                'تیر',
                'مرداد',
                'شهریور',
                'مهر',   
                'آبان',
                'آذر',
                'دی',
                'بهمن',
                'اسفند',
            ],
            'firstDay' => 6
        ],
    ],
    'htmlOptions' => [
        'class' => 'form-control',
        'id' => 'objects-findDate'
    ]
]);

?>

The Versions

17/09 2017

dev-master

9999999-dev

Date Range Picker for Bootstrap Yii2 Extension

  Sources   Download

GPL-2.0

The Requires

 

by Mohammd Ebrahim Amini

extension yii2 jalali persian calendar date range picker

17/09 2017

v1.0.2

1.0.2.0

Date Range Picker for Bootstrap Yii2 Extension

  Sources   Download

GPL-2.0

The Requires

 

by Mohammd Ebrahim Amini

extension yii2 jalali persian calendar date range picker

07/01 2016

V1.0

1.0.0.0

Date Range Picker for Bootstrap Yii2 Extension

  Sources   Download

GPL-2.0

The Requires

 

by Mohammd Ebrahim Amini

extension yii2 jalali persian calendar date range picker