Yii2 jui kalendari uchun css klasslarini kochirish

+1 ovoz
62 marta ko‘rilgan
so‘radi 13 avgust, 18 alfraganus (754 bal)
Assalomu ALeykum,

Jui pluginidan foydalanib, sana tanledigon qilingan edi, lekin shablonning klasslarini tuhsira olmayapman, oldingi shablondangi klasslari quyidagilar:

   <?= $form->field($model, 'datefrom', [
                                                            'template' => '{label}{input}{error}<span class="form-control-icon"><i class="fa fa-calendar"></i></span>',
                                                            'options' => ['class' => 'form-group has-icon has-label']
                                                        ])->textInput([
                                                            'placeholder' => 'mm/dd/yyyy',
                                                            'class' => 'form-control datepicker',
                                                            'autocomplete' => 'off',
                                                            'value' => date('m/d/Y')
                                                        ]) ?>

huddi shu klaalarni yangi widget ornatib kochirmmoqchi boldim, lekin klasslar ishlamayapdi, men quyidagicha qilgandim:

 <?= $form->field($model, 'dateto', [
                                                            'template' => '{label}{input}{error}<span class="form-control-icon"><i class="fa fa-calendar"></i></span>',
                                                            'options' => ['class' => 'form-group has-icon has-label']
                                                        ]) ->widget(yii\jui\DatePicker::className(),['clientOptions' => [ 'placeholder' => 'mm/dd/yyyy',
                                                     'placeholder' => 'mm/dd/yyyy',
                                                            'class' => 'form-control datepicker',
                                                            'autocomplete' => 'off',
                                                            'value' => date('m/d/Y'),
                                                        'autoclose'=>true,
                                                    
                                     ]]) ?>

qandey qilbi css klasslarini widget ichiga kochirib yossa kegin 100% original bolib ishledi? iltimos amaliy yordam bera olasizlarmi?

1 ta javob

0 ovoz
javob berdi 06 yanvar Kenjebaev (866 bal)
У жойдаги файлларга тегмасдан, сстаган турдаги custom css файл қўшиб оласиз.

Кейинги қадам эса CTRL+SHIFT+I орқали унинг css кодларини кўриб бу тарафда ўзингиз истаган формада ўзгартириб оласиз.

Энг асосийси сиз қўшиб олган css кодлар бошқа кодлардан энг пастда туриши керак

Assalomu alaykum, yordam.uz saytimizga xush kelibsiz.

Bu saytda o`zingizni qiziqtirgan savollarga javob olishingiz va o`z sohangiz bo`yicha savollarga javob berishingiz mumkin.

Bizning Oilamizga a'zo bo`lganingiz uchun chuqur Minnatdorchilik bildiramiz !!!

Telegram kanal YordamUzRss

...