Hi,
i am new to yii2.
i am using jui DatePicker.
it works proper. but my form layout is breaks.
my form-control class is not supported in that…
it will take its own class class="hasDatepicker".
thats why my form layout is changed…
can u tell me what to do for this issue to resolve my form design…
here is my code so u can easily understan what i want exactly…
<?= $form->field($model,'academic_terms_period_start_date',['inputOptions' => ['class' => 'form-control']])->widget(DatePicker::className(),['clientOptions' => ['dateFormat' => 'yy-mm-dd']]) ?>
<?= $form->field($model,'academic_terms_period_end_date') ?>
<?= yii\jui\DatePicker::widget(['name'=>'academic_terms_period_end_date']) ?>
i have tried to use both syntax, but not satisfied…
suggest any solution …
Thanks in advance.
Janvi