Skip to content

FileInputSuggest.selectSuggestion method

FileInputSuggest › selectSuggestion

Puts the file path into the input, dispatches an input event, then calls the onSelect callback.

Signature:

selectSuggestion(file: TFile, $event: KeyboardEvent | MouseEvent): void

Parameters:

ParameterTypeDescription
fileTFileThe file.
$eventKeyboardEvent | MouseEvent

Returns: void