【问题标题】:2amigos DataRangePicker. Display over input.2amigos 数据范围选择器。显示超过输入。
【发布时间】:2017-02-26 10:29:52
【问题描述】:

问题

我设置了方向,但它仍在底部。有什么问题?

代码

<?=$form->field($contactUsModel, 'planningToTravelFrom')
                            ->widget(\dosamigos\datepicker\DateRangePicker::className(), [
                                'attributeTo'   => 'planningToTravelTo',
                                'form'          => $form, // best for correct client validation
                                'language'      => 'es',
                                'size'          => 'lg',
                                'clientOptions' => [
                                    'autoclose'   => true,
                                    'orientation' => 'top',
                                    'format'      => 'dd-M-yyyy'
                                ]
                            ]);?>

【问题讨论】:

    标签: twitter-bootstrap-3 yii2 yii-widgets bootstrap-daterangepicker


    【解决方案1】:

    问题出在

    1. 应该是'orientation' =&gt; 'bottom'
    2. 不适用于date-range-picker bugfix

     

    $("#contactform-planningtotravelfrom, #contactform-planningtotravelto").datepicker().on('show.bs.modal', function (event) {
            // prevent datepicker from firing bootstrap modal "show.bs.modal"
            event.stopPropagation();
        });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-02-18
      • 1970-01-01
      • 1970-01-01
      • 2012-04-17
      • 1970-01-01
      • 1970-01-01
      • 2019-05-06
      相关资源
      最近更新 更多