Menu

#83 settings : 'size' option of selects

0.7.x
closed-accepted
5
2004-12-08
2004-11-17
No

(patch build on 0.7.2)

Hello, this patch provide a 'size' option for select input in
dynamic settings syntax. In case of multiple select, the 'size'
option can be differentiated of global 'size'. See Following
example :

<?php
settings["module"] = array(
"settings" => array(
"myselect1" => array(
"method" => "select",
"type" => "int",
"size" => 4,
"choices" => array(
array("name"=>"s1","value"=>$tab))
),
"my3selects" => array(
"method" => "select",
"type" => "int",
"size" => 6,
"choices" => array(
array("name"=>"3s1","value"=>$t1,"size"=>2),
array("name"=>"3s2","value"=>$t2),
array("name"=>"3s3","value"=>$t3,"size"=>10))
),
)
"myselect2" => array(
"method" => "select",
"type" => "int",
"choices" => array(
array("name"=>"s2","value"=>$t2))
),
)
);
?>

Results :
size of "s" select = 4 (global value)
size of "3s1" select = 2 (local value)
size of "3s2" select = 6 (global value)
size of "3s3" select = 10 (local value)
size of "s2" select = 1 (default value)

Discussion

  • Fabien Vantard

    Fabien Vantard - 2004-11-17

    build on 0.7.2

     
  • Karsten Dambekalns

    Logged In: YES
    user_id=105527

    Your patch has been accepted and added to CVS.

    Check out CVS or fetch a CVS snapshot to see the new code.

    --
    more.groupware developer team

     
  • Karsten Dambekalns

    • assigned_to: nobody --> k-fish
    • status: open --> closed-accepted
     

Log in to post a comment.