Why can not display the days in the widget kartik\date\DatePicker?

Tell me, please, why may not display the calendar in the widget kartik\date\DatePicker? Looks on the page is this:
5a6ebee5ae0d4e379c71aa8e85b0e009.png

In the console:
<div class="datepicker-days" style="display:none"></div>


File (view):
use \kartik\form\ActiveForm;
use \kartik\date\DatePicker;

$form = ActiveForm::begin([
 'id' => 'profile-form',
 'options' => ['class' => 'form-horizontal'],
 'fieldConfig' => [
 'template' => "{label}\n<div class="\"col-lg-9\"">{input}</div>\n<div class="\"col-sm-offset-3" col-lg-9\">{error}\n{hint}</div>",
 'labelOptions' => ['class' => 'col-lg-3 control-label'],
],
 'enableAjaxValidation' => true,
 'enableClientValidation' => false,
 'validateOnBlur' => false,
]);

echo $form->field($model, 'date_1')->widget(DatePicker::classname(), [
 'options' => ['placeholder' => 'Enter birth date ...'],
 'pluginOptions' => [
'autoclose'=>true
]
]);

ActiveForm::end();


I understand that the problem is that this element has display:none, but why is it not changing? Thank you!
August 19th 19 at 23:29
1 answer
August 19th 19 at 23:31
Good evening.
And You widget is configured, I read on the official site about all kinds of settings?
Install better DateControl
Introduction:
<?= $form--->field($model, 'date')->widget(DateControl::className(),
 ['type' => DateControl::FORMAT_DATE]
 ) ?>


In the configuration file:
'datecontrol' => [
 'class' => '\kartik\datecontrol\Module',
 'displaySettings' => [
 Module::FORMAT_DATE => 'd MMMM yyyy',
 Module::FORMAT_TIME => 'hh:mm',
 Module::FORMAT_DATETIME => 'dd-MM-yyyy hh:mm:ss a',
],
 'autoWidgetSettings' => [
 Module::FORMAT_DATE => ['pluginOptions' => [
 'autoclose' => true,
 'todayHighlight' => true,
 'startDate' => 'current',
],
 'readonly' => true],
 Module::FORMAT_TIME => ['readonly' => true]
],
 'saveSettings' => [
 Module::FORMAT_DATE => 'php:U',
 // Module::FORMAT_TIME => 'php:u'
],
 'ajaxConversion' => false,
 ]

Well, or play around with the settings of DatePicker, but it is better DateControl
Where configurable widget DatePicker in addition to placements? - dawn_Veum74 commented on August 19th 19 at 23:34
I've already said, even the example settings given... - erna_Hane15 commented on August 19th 19 at 23:37

Find more questions by tags Yii