2017 © Pedro Peláez
 

yii2-extension yii2-date-time-picker-widget

Bootstrap DateTimePicker widget for Yii2.

image

efureev/yii2-date-time-picker-widget

Bootstrap DateTimePicker widget for Yii2.

  • Thursday, March 10, 2016
  • by efureev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 36 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Bootstrap DateTimePicker Widget for Yii2

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Renders a Bootstrap DateTimePicker plugin., (*2)

Installation

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

Either run, (*4)

composer require efureev/yii2-date-time-picker-widget:~1.0

or add, (*5)

"efureev/yii2-date-time-picker-widget" : "~1.0"

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

Usage

This widget renders a Bootstrap DateTimePicker input control. Best suitable for model with date string attribute. Its functionality is similar to Bootstrap DatePicker plugin but this widget is enhanced with Time selection., (*7)

It also allows you to restrict the views so you can use this widget as a DatePicker, TimePicker, or DateTimePicker., (*8)

There are two ways of using it, with an ActiveForm instance or as a widget setting up its model and attribute., (*9)



= DateTimePicker::widget([
    'model' => $model,
    'attribute' => 'created_at',
    'language' => 'es',
    'size' => 'ms',
    'clientOptions' => [
        'autoclose' => true,
        'format' => 'dd MM yyyy - HH:ii P',
        'todayBtn' => true
    ]
]);?>


= $form->field($tour, 'date_from')->widget(DateTimePicker::className(), [
    'language' => 'es',
    'size' => 'ms',
    'template' => '{input}',
    'pickButtonIcon' => 'glyphicon glyphicon-time',
    'inline' => true,
    'clientOptions' => [
        'startView' => 1,
        'minView' => 0,
        'maxView' => 1,
        'autoclose' => true,
        'linkFormat' => 'HH:ii P', // if inline = true
        // 'format' => 'HH:ii P', // if inline = false
        'todayBtn' => true
    ]
]);?>

Testing

To test the extension, is better to clone this repository on your computer. After, go to the extensions folder and do the following (assuming you have composer installed on your computer:, (*10)

$ composer install --no-interaction --prefer-source --dev

Once all required libraries are installed then do:, (*11)

$ phpunit

Further Information

Please, check the Bootstrap DateTimePicker site documentation for further information about its configuration options., (*12)

Contributing

Please see CONTRIBUTING for details., (*13)

Credits

License

The BSD License (BSD). Please see License File for more information., (*14)

2amigOS!
Web development has never been so fun!
www.2amigos.us, (*15)

The Versions

10/03 2016

dev-master

9999999-dev https://github.com/efureev/yii2-date-time-picker-widget

Bootstrap DateTimePicker widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 yii yii 2 widget datetimepicker efureev

02/04 2015

1.0.2

1.0.2.0 http://yiiwheels.com/extension/bootstrap-datetimepicker

Bootstrap DateTimePicker widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 2amigos yii yii 2 widget datetimepicker

16/03 2015

1.0.1

1.0.1.0 http://yiiwheels.com/extension/bootstrap-datetimepicker-widget

Bootstrap DateTimePicker widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 2amigos yii yii 2 widget datetimepicker

08/03 2015

1.0.0

1.0.0.0

Bootstrap DateTimePicker widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii widget datepicker

24/06 2014

0.1.1

0.1.1.0

Bootstrap DateTimePicker widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii widget datepicker

03/04 2014

0.1.0

0.1.0.0

Bootstrap DateTimePicker widget for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii widget datepicker