Skip to content

AbstractInputSuggest.selectSuggestion method

AbstractInputSuggest › selectSuggestion

Called when the user picks a suggestion, by click or keyboard. As in Obsidian, it calls the callback registered through AbstractInputSuggest.onSelect, if any.

Signature:

selectSuggestion(value: T, event: MouseEvent | KeyboardEvent): void

Parameters:

ParameterTypeDescription
valueTThe chosen suggestion.
eventMouseEvent | KeyboardEventThe event that picked it.

Returns: void