Set size of a field of type "select".

QuestionsSet size of a field of type "select".
Montemaggiore Sebastian asked 4 years ago

Hello. Again i have another question.
How can i change the width of a fiel of type select in the edit form?.
Part of my code is,


$col = array();
$col["name"] = "anillado";
$col["edittype"] = "select";
$col["editoptions"] = array("rows"=>1, "value"=>'Si:Si;No:No', "cols"=>60);
$col["width"] = "80";
$cols[] = $col;

"cols"=>60 doesn´t have effect.

1 Answers
Abu Ghufran answered 4 years ago

Try setting:

$col["editoptions"] = array("style"=>"width:200px", "value"=>'Si:Si;No:No');

This will make width of dropdown to 200px.

Your Answer

13 + 3 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!