R
R
Ruslan Dzh2019-02-14 09:24:39
css
Ruslan Dzh, 2019-02-14 09:24:39

How to add specific style for dropDownList in yii2?

I am using yii2 advanced.
There is a certain dropDownList on the form, indicated the output of certain values ​​​​in the dropDownList.
Now I can’t specify a specific style for it, how can I do it by analogy with:
<?= $form->field($model, 'typeRequest')->textInput(['style' => 'color:black; border -radius: 5px;', 'maxlength' => true]) ?> ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-02-14
@rdzh

Good morning.
Check out the documentation

<?= $form->field($model, 'typeRequest')->dropDownList([],['class' => 'class_name']) ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question