<select>
element. Essentially a button and a menu glued together with useful functions for setting and getting the currently selected value. <button id="example" class="hx-btn"></button>
new hx.Picker('#example', {
items: ['Option 1', 'Option 2', 'Option 3', 'Option 4', 'Other'],
startValue: 'Option 1'
})
SingleSelect
component that merges Picker
and AutocompletePicker
functionality. items
method. function (node, data) {
hx.select(node).text(data);
}
renderer
method. undefined
undefined
will clear the value, unless an item is found with a value of undefined
SingleSelect
component that merges Picker
and AutocompletePicker
functionality.