FilteringSelect
A FilteringSelect is an
enhanced version of the ordinary HTML select element in that provides a drop-down
list of mandatory values and submits the hidden values and the
displayed values. While FilteringSelect looks like and shares a lot
of features with ComboBox,
including the ability to filter a drop-down list as text is typed and
the ability to fetch data from a serve via a store, it is built upon
an HTML SELECT element.
Three particularly important distinctions between a FilteringSelect and a ComboBox are worth noting:
ComboBoxis built on an ordinaryselectelement in which the value that is submitted to the server on asubmitevent is the control's hidden value, not the visible value in the control. This distinction is an important feature becauseFilteringSelectcan be degradable and behave as much like an ordinarySELECTas possible.The
FilteringSelectinherits fromMappedTextBox(a serializableTextBox) instead ofValidationTextBoxbecause validation is a nonissue because users cannot type free text into the control.FilteringSelectcan display HTML as its label, not just text. Thus, you can include customizable markup such as images in labels.
In addition to common dijit.form operations such as getValue, setValue, getDisplayedValue, setDisplayedValue, and the various ComboBox options, FilteringSelect provides two additional
attributes and one additional function, listed in Table 13-10.
Table 13-10. FilteringSelect additions
Name | Comment |
|---|---|
| The text to display ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access