wbraganca/yii2-dynamicform

Plugin options of kartik datepicker do not work

vitalypark0555 opened this issue · 1 comments

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.