Table of Contents

behavior: select-dropdown

select-dropdown is what is known as COMBOBOX in Windows.

Elements

that have this behavior applied by default (see master_style_sheet):

Dropdown select is a compound control. When this behavior is applied to the element it builds following structure:

  <select> 
    <caption>...</caption>
    <button>...</button>
    <popup>
      <option>...</option> 
      <option>...</option>
      <option>...</option>
    </popup>
  </select>

Where caption, button and popup correspond to separate parts of the combobox :

In h-smile engine all components of the select are ordinary DOM elements so styleable through CSS.

Select may have arbitrary markup inside. Elements that have special meaning:

role=“option” allows to use, as an example, tables:

<select> 
  <table> ...
     <td role=option>First</td>
     <td role=option>Second</td>
     ...
  </table>
</select>
as a representation of list items.

Attributes

this behavior knows about:

Events

Besides of standard set of events (mouse, keyboard, focus) behavior:select generates:

Value

Special key combinations

You can override styles of the <select> and its content, see master_style_sheet and html_samples/forms/dropdown-selects.htm and nearby.