Skip to main content

FuzzySuggestModal

Extends SuggestModal<FuzzyMatch<T>>

Constructor#

constructor(app: App);

Methods#

getSuggestions#

getSuggestions(query: string): FuzzyMatch<T>[];

renderSuggestion#

renderSuggestion(item: FuzzyMatch<T>, el: HTMLElement): void;

Render the suggestion item into DOM.

onChooseSuggestion#

onChooseSuggestion(item: FuzzyMatch<T>, evt: MouseEvent | KeyboardEvent): void;

getItems#

abstract getItems(): T[];

getItemText#

abstract getItemText(item: T): string;

onChooseItem#

abstract onChooseItem(item: T, evt: MouseEvent | KeyboardEvent): void;