Skip to main content

Suggest Input API

Properties
NameTypeDefaultDescription
optionsarray[]Array of strings used as suggestions.
valuestringPredefined value for the input field.
placeholderstringPlaceholder text shown when the field is empty.
disabledbooleanfalseDisables the input, preventing entry and selection.
readonlybooleanfalseMakes the input read-only, preventing entry and selection.
loadingbooleanfalseShows a spinner in the options list while loading.
errorbooleanfalseSets the error state on the input.
JavaScript API
NameKindDescription
open()actionOpens the suggestions list.
close()actionCloses the suggestions list.
Events
EventDescriptionReturns
changeFires when the value changes, either by typing or selecting a suggestion.
blurFires when the component loses focus.