A
A
Alexey2014-08-14 13:03:49
css
Alexey, 2014-08-14 13:03:49

How to disable styles in Yii2 config file for DatePicker?

Colleagues, this is the situation:
In (Yii2) ActiveForm I use the Jui DatePicker widget:

<label class="field">
<span class="field__el">
  <?=
  $form->field($model, 'birth_date')->widget(
    DatePicker::className(),
    [
      'language' => 'ru',
      'clientOptions' => [
        'dateFormat' => 'yy-mm-dd'
      ]
    ]
  ) ?>
</span>
</label>

But here's the problem, it is displayed incorrectly.
e127386160ee4cf4a39c87595b464a12.png
All due to the fact that other styles are superimposed on this widget, in order to fix this, it is necessary to disable the use of styles by this widget in the "main.php" configuration file, how to specify this? Or at least where it is described in the mana?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Zelenin, 2014-08-14
@azovl

I see two styles: one is standard jui, the second is apparently some kind of custom. If you need to disable the first one, then it is connected using this bundle https://github.com/yiisoft/yii2/blob/master/extens...
if the second one, then apparently you created it yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question