jQuery技术:只有ejuidatetimepicker中的时间选择器

我在Yii应用程序中使用ejuidatetimepicker 。 它给出了日期和时间选择器。 我只想要时间选择器,我尝试过两个选项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

      以上就是jQuery教程分享只有ejuidatetimepicker中的时间选择器相关内容,想了解更多jQuery开发(异常处理)及jQuery教程关注计算机技术网(www.ctvol.com)!)。

      本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

      ctvol管理联系方式QQ:251552304

      本文章地址:https://www.ctvol.com/jquerytutorial/558223.html

      (0)
      上一篇 2021年1月26日
      下一篇 2021年1月26日

      精彩推荐