Skip to content

ResultDom.addResult method

ResultDom › addResult

Unofficial

Add a search result for a file to the result DOM.

Signature:

addResult(file: TFile, result: ResultDomResult, content: string, shouldShowTitle?: boolean | undefined): ResultDomItem

Parameters:

ParameterTypeDescription
fileTFileThe file to add a result for.
resultResultDomResultThe search result data.
contentstringThe text content of the file.
shouldShowTitle?boolean | undefinedWhether to show the file title.

Returns: ResultDomItemThe created result DOM item.