Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
uladzimir-miadzinski opened this issue Apr 11, 2018 · 0 comments
Assignees

Comments

@uladzimir-miadzinski
Copy link

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.

@Borales Borales self-assigned this Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants