bupy7/yii2-date-range-picker Wrapper of bootstrap date range picker for Yii2.

extensionbootstrappickerdaterange

yii2-date-range-picker

Latest Stable Version Total Downloads Latest Unstable Version License

Wrapper of bootstrap date range picker for Yii2.

More information about plugin: https://github.com/dangrossman/bootstrap-daterangepicker

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bupy7/yii2-date-range "*"

or add

"bupy7/yii2-date-range": "*"

to the require section of your composer.json file.

Usage

As field of form:

echo $form->field($model, 'date_range')->widget(DateRangePicker::className(), [
    'pluginOptions' => [
        // see http://www.daterangepicker.com/#options
    ],

    'pluginEvents' => [
        // see http://www.daterangepicker.com/#events
    ],

    // Language of plugin. If `null` then `\yii\base\Application::language` will be used.
    'language' => 'ru',

    // Converting date format from PHP DateTime to Moment.js DateTime.
    'convertDateFormat' => true,

    // Options of field input.
    'options' => [

    ],
]);

As an independent widget:

DateRangePicker::widget([
    'name' => 'date_time',

    'pluginOptions' => [
        // see http://www.daterangepicker.com/#options
    ],

    'pluginEvents' => [
        // see http://www.daterangepicker.com/#events
    ],

    // Language of plugin. If `null` then `\yii\base\Application::language` will be used.
    'language' => 'ru',

    // Converting date format from PHP DateTime to Moment.js DateTime.
    'convertDateFormat' => true,

    // Options of field input.
    'options' => [

    ],
]);

License

yii2-date-range-picker is released under the BSD 3-Clause License.

Changelog

yii2-date-range-picker

v1.0.1 [2015-12-12]

  • Fixed bug of register plugin events.

v1.0.0 [2015-12-11]

  • First release.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.0.1 is the latest of 2 releases



BSD-3-Clause license
Stats
0 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
70 total downloads