Я использую ejuidatetimepicker в своем приложении Yii. Его датирование и выбор времени. Я хочу только выбор времени, я пробовал с двумя вариантами 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