Skip to main content

FileView

Extends ItemView

Constructor#

constructor(leaf: WorkspaceLeaf);

Properties#

allowNoFile#

allowNoFile: boolean

file#

file: TFile

Methods#

getDisplayText#

getDisplayText(): string;

onload#

onload(): void;

Override this to load your component

getState#

getState(): any;

setState#

setState(state: any, result: ViewStateResult): Promise<void>;

onLoadFile#

onLoadFile(file: TFile): Promise<void>;

onUnloadFile#

onUnloadFile(file: TFile): Promise<void>;

onMoreOptionsMenu#

onMoreOptionsMenu(menu: Menu): void;

onHeaderMenu#

onHeaderMenu(menu: Menu): void;

canAcceptExtension#

canAcceptExtension(extension: string): boolean;