something like this should do
form=crud.create(...)
form.element('textarea')[_cols']=40
form.element('textarea')[_rows']=2
or use jQuery/CSS. I normally use jQuery.
On Oct 3, 7:00 am, Markandeya <[email protected]> wrote:
> Dear Friends of Web2py,
> where do i go to edit the default number of rows for a textarea
> displayed in a SQLFORM or CRUD form that is autogenerated from a
> model? There are fields with a 'text' datatype. The textareas are too
> long vertically and they have scroll bars if more text area is needed
> which is good. I also could increase the cols as i have width space on
> my page.
> Thanks much, couldn't find textarea and rows in the base.css nor in
> jquery.js.