Skip to content

SuggestModal.renderSuggestion method

SuggestModal › renderSuggestion

Official

Render a suggestion.

Signature:

renderSuggestion(value: T, el: HTMLElement): void

Parameters:

Parameter Type Description
value T The value of the suggestion.
el HTMLElement The element to render the suggestion to.

Returns: void

Since: 1.5.7

Example:

class MySuggestModal extends SuggestModal<string> {
public override renderSuggestion(value: string, el: HTMLElement): void {
el.createEl('strong', { text: value });
}
}