Renderer – textarea wraper class

Notice: This thread is very old.

6 years ago

jixis
Member | 4
+
0
-

Hi,
I was looking for textarea class in default form renderer (like text – .text, password – .password) and I cannot find option for textarea.
Is it on purpose or is it forgotten feature?
I know about $form->addTextarea(...)->getControlPrototype()->class(...), but renderer solution is imho better.

Thanks

6 years ago

petr.pavel
Backer | 501
+
0
-

Why can't you use textarea { ... } instead of .textarea { ... }?

6 years ago

jixis
Member | 4
+
0
-

Thanks for reply, but I want it for some textareas only, not for all