rikcage/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets) unlimited clock

0.0.1 2018-10-01 08:09 UTC

This package is auto-updated.

Last update: 2022-05-29 01:03:19 UTC


README

it's a clone from https://github.com/kartik-v/yii2-widget-timepicker with a difference unlimited clock

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require rikcage/yii2-widget-timepicker "*"

or add

"rikcage/yii2-widget-timepicker": "*"

to the require section of your composer.json file.

Usage

use rikcage\time\TimePicker;

// usage without model
echo '<label>Start Time</label>';
echo TimePicker::widget([
	'name' => 'start_time', 
	'value' => '54:24',
	'pluginOptions' => [
		'showSeconds' => true
	]
]);