Borales / yii2-phone-input

Yii2 International telephone numbers
Other
135 stars 55 forks source link

How to add class near to classes intl-tel-input allow-dropdown #44

Open uladzimir-miadzinski opened 6 years ago

uladzimir-miadzinski commented 6 years ago

Hi!

I have a question Your extension generates div with class="intl-tel-input allow-dropdown", I want to add one more classes to this div, how can I do it?

This code is from my form

<?= $form->field($model, 'phone')->widget(PhoneInput::class, [
                    'jsOptions' => [
                        'maxlength' => true,
                        'preferredCountries' => ['ru', 'by', 'ua'],
                    ]
                ])->label('<i class="fas fa-phone mr-2 text-success"></i>Телефон', [
                    'class' => 'center-block'
                ]) ?>

Where can I add any option like 'containerOptions' => [] or else to add classes to root container of widget? Thanks for answer.