AutoSuggestProps Interface
Properties for the AutoSuggest component.
Extends
- InputHTMLAttributes<HTMLInputElement>
- CommonProps
Properties
Name | Type | Description | |
---|---|---|---|
getLabel | undefined | (value: undefined | string) => string | ||
getSuggestions | undefined | AsyncGetAutoSuggestDataFunc | Asynchronously calculate suggestions for any given input value. | |
onInputFocus | undefined | (e: FocusEvent<HTMLInputElement, Element>) => void | ||
onPressEnter | undefined | (e: KeyboardEvent<HTMLInputElement>) => void | ||
onPressEscape | undefined | (e: KeyboardEvent<HTMLInputElement>) => void | ||
onPressTab | undefined | (e: KeyboardEvent<HTMLInputElement>) => void | ||
onSuggestionSelected | (selected: AutoSuggestData) => void | ||
onSuggestionsClearRequested | undefined | () => void | ||
options | AutoSuggestData[] | GetAutoSuggestDataFunc | Options for dropdown. | |
setFocus | undefined | boolean | Indicates whether to set focus to the input element | |
value | undefined | string | Optional input value override. |
Inherited properties
Name | Type | Inherited from | Description |
---|---|---|---|
itemId | undefined | string | CommonProps | Optional unique identifier for item. |
Defined in
Last Updated: 05 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.