Answer the question
In order to leave comments, you need to log in
How to make textarea rows smaller?
I didn’t catch up with textarea a bit when I write something like this in the code
<?= $form->field($commentForm, 'comment')->textarea(['rows' => 1])->label(false) ?>
Answer the question
In order to leave comments, you need to log in
In one line, you can also ...->textInput($options)...
But in fact there is no error, textarea in one line is written correctly for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question