<docbook><section><title>OATDOCcombobox</title><para> </para>
<title> combobox.js</title> combobox.js
<para>Creates a combobox, an enhanced <computeroutput>&lt;select&gt;</computeroutput> which allows richer options.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Objects</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> OAT.Combobox(defaultValue)</bridgehead>
<para>Creates a combobox with a value of <computeroutput>defaultValue</computeroutput>.
 Its main div is accessible as <computeroutput>OAT.Combobox::div</computeroutput>.
 Onchange callback may be set via <computeroutput>OAT.Combobox::onchange</computeroutput> property.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Methods</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> OAT.Combobox::addOption(element, textValue)</bridgehead>
<para>Adds a new option, represented by <computeroutput>element</computeroutput> with a value of <computeroutput>textValue</computeroutput>.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> CSS classes</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> .combo_box</bridgehead>
<para>CSS class of the main combo box div.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> .combo_box_list</bridgehead>
<para>CSS class of options list div.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> .combo_box_value</bridgehead>
<para>CSS class of the currently selected option.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> .combo_image</bridgehead>
<para>CSS class of the dropdown clicker image.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Example</bridgehead>
<programlisting>var cb = new OAT.Combobox(&quot;[choose here]&quot;);
document.body.appendChild( cb.div );
cb.addOption(someElement, &quot;option 1&quot;);
cb.addOption(someOtherElement, &quot;option 2&quot;);
</programlisting><para> <ulink url="CategoryDocumentation">CategoryDocumentation</ulink> <ulink url="CategoryOAT">CategoryOAT</ulink> <ulink url="CategoryOpenSource">CategoryOpenSource</ulink></para>
</section></docbook>