Skip to content

LinkAndTagInputSuggest.selectSuggestion method

LinkAndTagInputSuggest › selectSuggestion

Inserts the suggestion in place of the trigger, moves the caret after it and dispatches an input event, so a component listening on the element sees the change.

Signature:

selectSuggestion(suggestion: LinkAndTagSuggestion, $event: KeyboardEvent | MouseEvent): void

Parameters:

ParameterTypeDescription
suggestionLinkAndTagSuggestionThe suggestion.
$eventKeyboardEvent | MouseEvent

Returns: void