Closed vitalypark0555 closed 5 years ago
I set plugin options, however this datepicker in the dynamic form doesn't get changed at all. Autoclose is not working after selecting a date as well as format being dd/mm/yyyy by default. How can I solve this problem? Thanks beforehand.
<?= $form->field($modelEduForm, "[{$index}]start_date")->widget(DatePicker::classname(), [ 'options' => ['placeholder' => 'From'], 'pluginOptions' => [ 'autoclose' => true, 'format' => 'dd-MM-yyyy' ] ]); ?>
Magically solved the problem. Whether the format of string helped or smth else.
I set plugin options, however this datepicker in the dynamic form doesn't get changed at all. Autoclose is not working after selecting a date as well as format being dd/mm/yyyy by default. How can I solve this problem? Thanks beforehand.