我通过composer安装这个插件。当我单击按钮或在输入字段中设置焦点时,不会出现dateTimePiker。我使用kartik-v的代码示例,如下所示:
use kartik\datetime\DateTimePicker;
echo 'Start Date/Time';
echo DateTimePicker::widget([
'name' => 'datetime_10',
'options' => ['placeholder' => 'Select operating time ...'],
'convertFormat' => true,
'pluginOptions' => [
'format' => 'd-M-Y g:i A',
'startDate' => '01-Mar-2014 12:00 AM',
'todayHighlight' => true
]
]);
但是当我点击按钮打开日历时,他没有出现。我正在使用这个脚本:
<!-- jqGrid -->
<!-- jQuery UI 1.10.3 -->
<script src="/vsoftservice/web/js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
<!-- Bootstrap -->
<!--<script src="/js/jquery-1.12.0.min.js" type="text/javascript"></script>-->
<script src="/vsoftservice/web/js/moment.js" type="text/javascript"></script>
<script src="/vsoftservice/web/js/moment-with-locales.js" type="text/javascript"></script>
<script src="/vsoftservice/web/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/vsoftservice/web/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<!-- iCheck -->
<!-- AdminLTE App -->
<script src="/vsoftservice/web/js/AdminLTE/app.js" type="text/javascript"></script>
<script src="/vsoftservice/web/js/jquery-ui-dateTimePiker-Pt.js" type="text/javascript"></script>
我不能使用jquery版本,因为phpgrid不起作用。是否存在更多的依赖或其他安装方式?