ISuggestOwner.selectSuggestion method
ISuggestOwner › selectSuggestion
Official
Called when the user makes a selection.Signature:
selectSuggestion(value: T, evt: KeyboardEvent | MouseEvent): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| value | T | The value of the suggestion. |
| evt | KeyboardEvent | MouseEvent | The event that triggered the selection. |
Returns: void
Example:
class MySuggestOwner implements ISuggestOwner<string> { public selectSuggestion(value: string, evt: MouseEvent | KeyboardEvent): void { console.log(value, evt); }}