Skip to content

Workspace.onQuickPreview method

Workspace › onQuickPreview

Unofficial

Trigger the quick preview event with the given arguments.

Signature:

onQuickPreview(file: TFile, data: string): void

Parameters:

ParameterTypeDescription
fileTFileThe file to preview.
datastringThe data to preview.

Returns: void