phamxuanloc/yii2-jui-timepicker

Adds a timepicker widget to Yii2 JUI

Installs: 3 070

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 4

Type:yii2-extension

dev-master 2016-11-17 07:28 UTC

This package is not auto-updated.

Last update: 2024-04-25 00:03:45 UTC


README

Adds a timepicker widget to Yii2 JUI

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist phamxuanloc/yii2-jui-timepicker "*"

or add

"phamxuanloc/yii2-jui-timepicker": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= $form->field($model, 'datetime')->widget(\phamxuanloc\jui\DateTimePicker::className()) ?>
<?= $form->field($model, 'time')->widget(\phamxuanloc\jui\DateTimePicker::className(), ['timeOnly' => true]) ?>