2017 © Pedro Peláez
 

yii2-extension bootui-datetimepicker

Bootstrap Datepicker and Timepicker in one extentions

image

moonlandsoft/bootui-datetimepicker

Bootstrap Datepicker and Timepicker in one extentions

  • Friday, September 4, 2015
  • by 3ch3r46
  • Repository
  • 1 Watchers
  • 2 Stars
  • 5,015 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 17 % Grown

The README.md

Bootstrap Date Time Picker

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

Bootstrap Datepicker and Timepicker in one extentions, (*2)

Installation

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

Either run, (*4)

php composer.phar require --prefer-dist moonlandsoft/bootui-datetimepicker "*"

or add, (*5)

"moonlandsoft/bootui-datetimepicker": "*"

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

Properties

addon

Addon is a bootstrap input group addon, you can see bootstrap input group to details of documentation. Extend form controls by adding text or buttons before, after, or on both sides of any text-based input., (*7)

format

You can change format of date or time using this property but this format only use momentjs date time format and not use php date time format. Click here to see all of datetime format., (*8)

others properties

For others properties you can see in bootstrap-datetimepicker. You can directly add the property from bootstrap-datetimepicker and my widget will instantly recognize the property., (*9)

Usage

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

= \bootui\datetimepicker\Datepicker::widget([
    'name' => 'date',
    'options' => ['class' => 'form-control'],
    'addon' => ['prepend' => 'Birth Date'],
    'format' => 'YYYY-MM-DD',
]); ?>

= \bootui\datetimepicker\Timepicker::widget([ 
    'name' => 'time',
    'options' => ['class' => 'form-control'],
    'addon' => ['prepend' => 'Time'],
    'format' => 'HH:mm',
]); ?>

= \bootui\datetimepicker\DateTimepicker::widget([
    'name' => 'datetime',
    'options' => ['class' => 'form-control'],
    'addon' => ['prepend' => 'Date and Time'],
    'format' => 'YYYY-MM-DD HH:mm',
]); ?>

or, (*11)

= $form->field($model, 'attribute')->widget(Datepicker::className(),[
    'options' => ['class' => 'form-control'],
    'addon' => ['prepend' => 'Birth Date'],
    'format' => 'YYYY-MM-DD',
]); ?>

= $form->field($model, 'attribute')->widget(Timepicker::className(),[ 
    'options' => ['class' => 'form-control'],
    'addon' => ['prepend' => 'Time'],
    'format' => 'HH:mm',
]); ?>

= $form->field($model, 'attribute')->widget(DateTimepicker::className(),[
    'options' => ['class' => 'form-control'],
    'addon' => ['prepend' => 'Date and Time'],
    'format' => 'YYYY-MM-DD HH:mm',
]); ?>

The Versions

04/09 2015

dev-master

9999999-dev

Bootstrap Datepicker and Timepicker in one extentions

  Sources   Download

MIT

The Requires

 

by Moh Khoirul Anam

extension yii2 bootstrap datepicker datetimepicker timepicker

04/08 2015

1.5-beta.1

1.5.0.0-beta1

Bootstrap Datepicker and Timepicker in one extentions

  Sources   Download

MIT

The Requires

 

by Moh Khoirul Anam

extension yii2 bootstrap datepicker datetimepicker timepicker

23/01 2015

1.0.0

1.0.0.0

Bootstrap Datepicker and Timepicker in one extentions

  Sources   Download

MIT

The Requires

 

by Moh Khoirul Anam

extension yii2 bootstrap datepicker datetimepicker timepicker