2017 © Pedro Peláez
 

yii2-extension bootui-datepicker

The Bootstrap Datepicker extension for yii framework

image

3ch3r46/bootui-datepicker

The Bootstrap Datepicker extension for yii framework

  • Wednesday, May 28, 2014
  • by 3ch3r46
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1,278 Installations
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 38 % Grown

The README.md

3ch3r46/bootui-datepicker

The Bootstrap Datepicker extension for yii framework, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist 3ch3r46/bootui-datepicker "*"

or add, (*4)

"3ch3r46/bootui-datepicker": "*"

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

Usage

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

field($model, 'attribute')->widget(Datepicker::className(), [
    'format' => 'yyyy-mm-dd',
    'addon' => [
        'prepend' => [Html::a('btn1', '#', ['class' => 'btn btn-default']), true], // prepend in single button, format [String $content, Boolean $asButton]
        'append' => [ // append in multiple button.
            [bootui\Button::widget(['label' => 'btn 2']), true],
            [bootui\Button::className(), ['label' => 'btn 3'], true], // format [$className, Array $config, Boolean $asButton]
        ],
    ],
]);

echo Datepicker::widget([
    'model' => $model,
    'attribute' => 'date',
    'format' => 'yyyy-mm-dd',
]);

echo Datepicker::widget([
    'name' => 'date-create',
    'value' => '2014-05-26',
    'format' => 'yyyy-mm-dd',
]);

?>


Property Datepicker

  • boolean $autoclose default value true
  • boolean $todayHighlight default value true
  • string $format default value yyyy-mm-dd
  • boolean $multidate default value false
  • string $multidateSeparator default value ,
  • string $daysOfWeekDisabled example value 0,1 disable the first and second day in week.
  • boolean $calendarWeeks default value false
  • boolean $forceParse default value true
  • boolean|string $todayBtn example value false, true, or string linked.
  • string $language example value en
  • integer $weekStart example value 3 start week from wednesday

The Versions

28/05 2014

dev-master

9999999-dev

The Bootstrap Datepicker extension for yii framework

  Sources   Download

MIT

The Requires

 

by Moh Khoirul Anam

extension yii2 date datepicker

28/05 2014

1.0.0

1.0.0.0

The Bootstrap Datepicker extension for yii framework

  Sources   Download

MIT

The Requires

 

by Moh Khoirul Anam

extension yii2 date datepicker