2017 © Pedro Peláez
 

yii2-extension yii2-date-range-picker

Yii 2 date range picker input based on Dan Grossman daterangepicker plugin.

image

jino5577/yii2-date-range-picker

Yii 2 date range picker input based on Dan Grossman daterangepicker plugin.

  • Thursday, October 15, 2015
  • by jino5577
  • Repository
  • 2 Watchers
  • 2 Stars
  • 4,479 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

yii2-date-range-picker

Date range picker input for Yii Framework 2 based on Dan Grossman's bootstrap-daterangepicker., (*1)

Features:, (*2)

Installation

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

To install, either run, (*6)

$ php composer.phar require jino5577/yii2-date-range-picker "*"

or add, (*7)

"jino5577/yii2-date-range-picker": "*"

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

Usage


use jino5577\daterangepicker\DateRangePicker; echo DateRangePicker::widget([ 'model' => $model, 'attribute' => 'dateRange', // Optional. Used for calendar localization. // IF `null` (default), default moment.js language will be used. 'locale' => 'ru-RU'; // Daterange plugin options. Default is `null`. // See http://www.daterangepicker.com/#options 'pluginOptions' => [ /* ... */ 'autoUpdateInput' => false, ], // Optional. If maskOptions is set, MaskedInput will be used // instead of TextInput. Default is `null`. 'maskOptions' => [ 'mask' => '99/99/9999 - 99/99/9999', ], // Optional. Input control options, // default is `['class' => 'form-control']`. 'options' => [ /* ... */ ], // Optional. Widget template, default is `{input}`. // The special tag `{input}` will be replaced with the form input. 'template' => ' <div class="input-group"> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> {input} </div> ' ], // Optional. Javascript callback to be passed to the // plugin constructor. By default, updates the input // and triggers `change` event. 'callback' => 'function() { /* ... */ }'; ]);

License

BSD 3-Clause License. Please see bundled LICENSE.md file for more information., (*9)

The Versions

15/10 2015

dev-master

9999999-dev https://github.com/jino5577/yii2-date-range-picker

Yii 2 date range picker input based on Dan Grossman daterangepicker plugin.

  Sources   Download

BSD-3-Clause

The Requires

  • bower-asset/bootstrap-daterangepicker @stable

 

by Dmitrij Butko

extension yii2 bootstrap date range widget time bootstrap 3 date-range

15/10 2015

1.0.0

1.0.0.0 https://github.com/jino5577/yii2-date-range-picker

Yii 2 date range picker input based on Dan Grossman daterangepicker plugin.

  Sources   Download

BSD-3-Clause

The Requires

  • bower-asset/bootstrap-daterangepicker @stable

 

by Dmitrij Butko

extension yii2 bootstrap date range widget time bootstrap 3 date-range