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