2017 © Pedro Peláez
 

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

Bootstrap DateTimePicker widget for Yii2.

image

2amigos/yii2-date-time-picker-widget

Bootstrap DateTimePicker widget for Yii2.

  • Wednesday, July 5, 2017
  • by tonydspaniard
  • Repository
  • 10 Watchers
  • 35 Stars
  • 75,555 Installations
  • PHP
  • 13 Dependents
  • 0 Suggesters
  • 36 Forks
  • 4 Open issues
  • 8 Versions
  • 7 % 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 2amigos/yii2-date-time-picker-widget:~1.0

or add, (*5)

"2amigos/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

05/07 2017

dev-master

9999999-dev 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

05/07 2017

1.0.4

1.0.4.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

11/03 2017

1.0.3

1.0.3.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

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