API REFERENCE · FORM CONTROLS
<dj-typeahead>
An editable combobox: type to filter options, pick from a popup <dj-list>. strict (default true) requires the value to match an option. Composes text-input, popup, list. Form-associated. Event: change.
npm install @dojo-ng/typeahead
import "@dojo-ng/typeahead";
Properties
| Property | Attribute | Type | Default |
|---|---|---|---|
options |
options |
ListOption[] |
[] |
value |
value |
string |
"" |
name |
name reflected |
string |
None |
label |
label |
string |
None |
placeholder |
placeholder |
string |
None |
helperText |
helper-text |
string |
None |
disabled |
disabled reflected |
boolean |
false |
required |
required reflected |
boolean |
false |
strict |
strict |
boolean |
true |
position |
position reflected |
"above""below""left""right" |
"below" |
Events
change
Methods
checkValidity(): booleanfocus(o: FocusOptions)
Types
The types that the properties above use, as they are declared in the source.
ListOption from @dojo-ng/list
export interface ListOption { value: string; label: string; disabled?: boolean; divider?: boolean; }