tree and tree-checkmarks is what known as TREEVIEW in Windows.
that have this behavior applied by default (see master style sheet):
<select type=“tree”>…</select><select type=“tree” checkmarks>…</select><widget type=“tree”>…</widget> <widget type=“tree” checkmarks>…</widget> The following elements have special meaning inside the tree:
<option>…</option> - option element - item of the list.
Each <option> inside the tree has mandatory <text> sub-element - caption of the option. There are two types of options:
<text> node inside and<text> has also one or more <option>s.
Node options get :expanded and :collapsed state flags indicating its expansion state.
In case of tree with checkmarks each <option> (leaf and node) may have :checked state flag.
Node options in tree with checkmarks may have also :incomplete state flag set when there sub-options with and without :checked state flags inside. Node option that has all sub-options :checked is by itself :checked.
this behavior knows about:
size=“N” - number of visible items in the list.checkmarks - if defined forces checkmarks to be rendered on options. Particular checkmark appearance is defined in master CSS and can be overridden by applications style sheets.Besides of standard set of events (mouse, keyboard, focus) behavior:select generates:
<option> (tree node) was changed: collapsed or expanded. Field target of event structure is a reference to the node element that was changed.<option> - either content of value attribute or text of the <option>.options element);options element);<select> and its content, see master style sheet and html_samples/forms/selects.htm and nearby.