deprecatedclass %ZEN.Component.select
extends listControl
A select list control.
This control is based on the HTML select element.
Setting readOnly to true has the same effect
as disabling this component; this is the standard HTML behavior
for select controls.
parameter DEFAULTCONTROLCLASS = "select";
The default css class used for the main element within this control. This
is overridden by subclasses.
method %DrawHTML()
Static HTML display method: draw the BODY of this component
as HTML.
Subclasses implement this in order to render the static HTML
contents of a component.
method getOptionText(idx)
[ Language = javascript ]
Return the display text for the given item (0-based) in the dropdown list.
method getOptionValue(idx)
[ Language = javascript ]
Return the logical value of the given item (0-based) in the dropdown list.
method getSelectedIndex(idx)
[ Language = javascript ]
Return the index of the current selected item (0-based) in the select component.
Returns -1 is no item is selected.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.