2017 © Pedro Peláez
 

library date-range-picker

dangrossman daterangepicker yii 2 gridview

image

webvimark/date-range-picker

dangrossman daterangepicker yii 2 gridview

  • Monday, February 27, 2017
  • by webvimark
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32,633 Installations
  • JavaScript
  • 7 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

Date range picker for Yii 2

Installation

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

Either run, (*2)

php composer.phar require --prefer-dist webvimark/date-range-picker "*"

or add, (*3)

"webvimark/date-range-picker": "*"

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

Configuration

If input in GridView, (*5)


'CampaignSearch', 'attribute'=>'created_at', ]) ?>

If external input, (*6)


widget('ext.Drp.Drp', array( 'model'=>'ULogger', 'attribute'=>'create_date', 'selector'=>'.superda', 'params'=>array( 'opens'=>'right', 'format'=>'YYYY-MM-DD H:mm', 'timePicker'=>true, 'timePicker12Hour'=>false, 'timePickerIncrement'=>5, 'locale'=>array( 'fromLabel'=>Yii::t("drp","С"), 'toLabel'=>Yii::t("drp","По"), 'applyLabel' => Yii::t("drp","Принять"), 'cancelLabel' => Yii::t("drp","Отмена"), 'customRangeLabel' => Yii::t("drp","Произвольная дата"), 'daysOfWeek' => (Yii::app()->language == 'ru') ? array('Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс') : '', 'monthNames' => (Yii::app()->language == 'ru') ? array('Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июнь', 'Июль', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек') : '', ), 'ranges' => array( Yii::t("drp","Вчера") => array( date('Y-m-d', strtotime('-1 day')), date('Y-m-d', time()) ), Yii::t("drp","Сегодня") => array( date('Y-m-d', time()), date('Y-m-d', time()) . ' 23:59' ), Yii::t("drp","30 дней") => array( date('Y-m-d', strtotime('-1 month')), date('Y-m-d', time()) . ' 23:59' ), Yii::t("drp","Предыдущий месяц") => array( date('Y-m-d', strtotime('first day of previous month')), date('Y-m-d', strtotime('last day of previous month')) . ' 23:59' ), Yii::t("drp","Текущий месяц") => array( date('Y-m-d', strtotime('first day of this month')), date('Y-m-d', time()) . ' 23:59' ), ), ), )); ?>

The Versions

27/02 2017

dev-master

9999999-dev

dangrossman daterangepicker yii 2 gridview

  Sources   Download

27/02 2017

1.0.2

1.0.2.0

dangrossman daterangepicker yii 2 gridview

  Sources   Download

13/10 2016

1.0.1

1.0.1.0

dangrossman daterangepicker yii 2 gridview

  Sources   Download

06/10 2015

1.0.0

1.0.0.0

dangrossman daterangepicker yii 2 gridview

  Sources   Download