Skip to content

RenderContext.renderFileLink method

RenderContext › renderFileLink

Unofficial

Renders an internal file link into a container element.

Signature:

renderFileLink(file: string | TFile, display: Value | null, containerEl: HTMLElement): void

Parameters:

Parameter Type Description
file string | TFile The target file, or a link path to resolve.
display Value | null The display value, or null to use the file name as text.
containerEl HTMLElement The container element to render into.

Returns: void