Php ejuidatetimepicker中的唯一时间选择器
我正在我的Yii应用程序中使用。它的日期和时间选择器。 我只想要时间选择器,我尝试了两个选项Php ejuidatetimepicker中的唯一时间选择器,php,jquery,yii,Php,Jquery,Yii,我正在我的Yii应用程序中使用。它的日期和时间选择器。 我只想要时间选择器,我尝试了两个选项mode=>time'和timeOnly=>true。它不起作用 请找到我下面的代码 $this->widget( 'application.extensions.timepicker.EJuiDateTimePicker', array( 'model' => $model, // Your model 'attribute' => 'starttime', // At
mode=>time'
和timeOnly=>true
。它不起作用
请找到我下面的代码
$this->widget( 'application.extensions.timepicker.EJuiDateTimePicker', array(
'model' => $model, // Your model
'attribute' => 'starttime', // Attribute for input
//'mode'=>'time', //Not working Error Message is "Property "EJuiDateTimePicker.mode" is not defined. "
//timeOnly - Default: false - Hide the datepicker and only provide a time interface.
'timeOnly' => true, // Not working Error Message is "Property "EJuiDateTimePicker.timeOnly" is not defined."
'options' => array(
'showOn'=>'focus',
'timeFormat'=>'hh:mm:ss',
'showSecond'=>true,
//'timeOnly' => true, // Not working Error Message is "Property "EJuiDateTimePicker.timeOnly" is not defined."
) ,
'htmlOptions' => array(
'autocomplete' => 'off',
'size' => 10,
'maxlength' => 10,
),
));
我找到了选择。我们必须使用
'timePickerOnly' => 'true',
我已签入EJuiDateTimePicker.php,找到了该选项。我们必须使用
'timePickerOnly' => 'true',
我已签入EJuiDateTimePicker.php