Yii 1.1: juiclockpick

A jQuery timepicker plugin
3 followers

This widget display a simple time picker using this jQuery plugin:

http://www.jnathanson.com/index.cfm?page=jquery/clockpick/ClockPick

Usage

In your _form.php, replace the text field with this:

<?php $this->widget('ext.widgets.clockpick.EClockpick', array(
         'model'            => $model,
         'attribute'        =>'end',
         'options'          =>array(
             'starthour'    => 8,
             'endhour'      => 20,
             'showminutes'  => TRUE,
            'minutedivisions'   => 12,
            'military'      => TRUE,
         ),
         'htmlOptions'      => array('size'=>5,'maxlength'=>5)
    )); ?>

Resources

Total 2 comments

#18702 report it
MasMo at 2014/12/15 01:08am
Thanks

Thanks u so much,.

#4115 report it
got 2 doodle at 2011/06/07 02:52pm
Thanks

Thanks for the extension. In Yii version 1.17 the extension doesn't work until modified.

// put this code before class EClockpick extends CJuiInputWidget
Yii::import('zii.widgets.jui.CJuiInputWidget');

doodle

Leave a comment

Please to leave your comment.

Create extension