Skip to content

WorkspaceLeaf.openFile method

WorkspaceLeaf › openFile

Official

Open a file in this leaf.

Signature:

openFile(file: TFile, openState?: OpenViewState | undefined): Promise<void>

Parameters:

ParameterTypeDescription
fileTFileThe file.
openState?OpenViewState | undefinedOptions for opening the file.

Returns: Promise<void>