Dojo NG is being built in the open, one section at a time — follow along on Heptapod.

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.

Try it in the playground

@dojo-ng/typeahead · v0.1.2

npm install @dojo-ng/typeahead

import "@dojo-ng/typeahead";

Properties

PropertyAttributeTypeDefault
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; }