HTML_QuickForm_select::setSelected() (Previous) (Next) Class Summary HTML_QuickForm_submit

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTML_QuickForm_select::setSize()

HTML_QuickForm_select::setSize() -- Sets the select field size, only applies to 'multiple' selects

Beschrijving

Dit pakket in nog niet gedocumenteerd.

Parameter

integer $size

Size of select field

Throws

throws no exceptions thrown

Zie

see getSize().

Note

since 1.0

Deze functie kan niet statisch worden aangeroepen.

HTML_QuickForm_select::setSelected() (Previous) (Next) Class Summary HTML_QuickForm_submit

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: user@example.com
demo code for a multiple select

$sel =& $form->addElement('select', 'person_id', 'PERSONS', $person_arr);
$sel->setMultiple(TRUE);
$sel->setSize(6);
$sel->setSelected('1,3'); //pre-selects $person_arr[1] and $person_arr[3]

//hope this helps