pheme/yii2-jui-timepicker

Adds a timepicker widget to Yii2 JUI

Installs: 6 603

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 4

Open Issues: 3

Type:yii2-extension

1.0 2014-12-29 10:09 UTC

This package is not auto-updated.

Last update: 2024-11-04 14:17:54 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 pheme/yii2-jui-timepicker "*"

or add

"pheme/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(\pheme\jui\DateTimePicker::className()) ?>
<?= $form->field($model, 'time')->widget(\pheme\jui\DateTimePicker::className(), ['timeOnly' => true]) ?>