Create a list from a fixed set of values.
Props
addIcon
The icon to display next to the field
[namespace: stringor
symbol, name: string]or
string
[ICON_NAMESPACE, plus]
chevronIcon
Icon to use as a chevron.
[namespace: stringor
symbol, name: string]or
string
[ICON_NAMESPACE, chevron]
deleteIcon
Icon for the delete button.
[namespace: stringor
symbol, name: string]or
string
[ICON_NAMESPACE, trash]
disabled
If the field is disabled.
booleanor
undefined
documentation
Inline documentation text.
stringor
undefined
documentationLink
Inline documentation link.
stringor
undefined
documentationLinkText
Inline documentation link text.
stringor
undefined
icon
The icon to display next to the field
[namespace: stringor
symbol, name: string]or
stringor
undefined
inputProps
Pass props directly to the input.
undefinedor
{ [x: string]: any; }
invalid
If the field is currently invalid.
booleanor
undefined
label
The label of the field.
string
messages
The messages to display under the field.
ValidationMessagesor
undefined
name
The name of the field.
string
options
A list of options to choose from.
TypeaheadOption[]
placeholder
The placeholder for the input.
string
renderItem
Render the list item.
(h: typeof h, option: TypeaheadOption) => stringor
VNodeor
VNode[]or
null
( h, { name }, ) => <input readonly class={value} value={name} tabindex={-1} />
templated
If the field is templated.
no-editor
booleanor
undefined
value
The selected item ids
string[]
ValidationMessages
TypeaheadOption
An option to be selected.
The display name of the option.
The string to be used as a value.
Events
fieldchange
FieldChange<string[], string>
Emitted when the value of the field is changed.
requestEdit
string
Emitted when the user requests to edit.
Parts
The wrapping div of the select input.
The input element.
Target the ul containing the list items.
Target the li containing the option,