扩展是
kartik\datetime\DateTimePicker;
关键是加入此配置  'minView'=> "month",示例如下:
 <?php
        echo DateTimePicker::widget([
            'name' => 'dayEnd',
            'value' => $request['dayEnd'] ? $request['dayEnd'] : "",
            'options' => ['placeholder' => '截止日期','autocomplete'=>'off'],
            'pluginOptions' => [
                'autoclose' => true,
                'format' => 'yyyy-mm-dd',
                'todatHightlight'=>true,
          //关键配置 'minView'=> "month", ], ]); ?>

 

相关文章:

  • 2022-12-23
  • 2021-09-06
  • 2021-05-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-05-08
猜你喜欢
  • 2021-11-21
  • 2021-10-10
  • 2022-12-23
  • 2021-10-10
  • 2021-08-11
  • 2022-12-23
相关资源
相似解决方案