Suggest Input API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
options | array | [] | Array of strings used as suggestions. |
value | string | — | Predefined value for the input field. |
placeholder | string | — | Placeholder text shown when the field is empty. |
disabled | boolean | false | Disables the input, preventing entry and selection. |
readonly | boolean | false | Makes the input read-only, preventing entry and selection. |
loading | boolean | false | Shows a spinner in the options list while loading. |
error | boolean | false | Sets the error state on the input. |
JavaScript API
| Name | Kind | Description | |
|---|---|---|---|
open() | action | Opens the suggestions list. | |
close() | action | Closes the suggestions list. | |
Events
| Event | Description | Returns | |
|---|---|---|---|
change | Fires when the value changes, either by typing or selecting a suggestion. | — | |
blur | Fires when the component loses focus. | — | |