2017 © Pedro Peláez
 

yii2-extension yii2-datetime-picker-widget

Date and time picker

image

metalguardian/yii2-datetime-picker-widget

Date and time picker

  • Saturday, October 31, 2015
  • by MetalGuardian
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,628 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

Yii2 date and time picker

This yii2 extension is a wrapper for the powerful jQuery date-time picker, (*1)

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

Scrutinizer Code Quality Code Coverage Build Status Code Climate, (*3)

Installation

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

Either run, (*5)

php composer.phar require --prefer-dist metalguardian/yii2-datetime-picker-widget "*"

or add, (*6)

"metalguardian/yii2-datetime-picker-widget": "*"

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

Usage

This widget renders a input control with datetime picker., (*8)

You can use is like a separate widget or with ActiveField instance., (*9)


= \metalguardian\dateTimePicker\Widget::widget([ // you need specify model and attribute 'model' => $model, 'attribute' => 'posted', // or name of the input and value (if needed) //'value' => '2016/01/22 18:26', //'name' => 'specific-name', 'mode' => \metalguardian\dateTimePicker\Widget::MODE_DATE, // for only date picker // or \metalguardian\dateTimePicker\Widget::MODE_TIME for time picker // default is datetime picker 'language' => 'ru', 'options' => [ // html options of the input 'class' => 'my-class', ], 'clientOptions' => [ 'theme' => 'dark', 'minDate' => '05.12.2013', 'formatDate' => 'd.m.Y', ] ]) ?> = $form->field($model, 'start_time')->widget(\metalguardian\dateTimePicker\Widget::className(), [ 'language' => 'ru', 'mode' => \metalguardian\dateTimePicker\Widget::MODE_TIME, 'options' => [ 'class' => 'my-class', ], 'clientOptions' => [ 'theme' => 'dark', 'minDate' => '05.12.2013', 'formatDate' => 'd.m.Y', ] ]) ?>

License

yii2-datetime-picker-widget is released under the MIT License. See the bundled LICENSE for details., (*10)

The Versions

31/10 2015

dev-master

9999999-dev

Date and time picker

  Sources   Download

MIT

The Requires

 

by Ivan Pushkin

extension yii2 date time picker