Skip to main content

View

Extends Component

Constructor#

constructor(leaf: WorkspaceLeaf);

Properties#

app#

app: App

icon#

icon: string

navigation#

navigation: boolean

leaf#

leaf: WorkspaceLeaf

containerEl#

containerEl: HTMLElement

Methods#

onOpen#

protected onOpen(): Promise<void>;

onClose#

protected onClose(): Promise<void>;

getViewType#

abstract getViewType(): string;

getState#

getState(): any;

setState#

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

getEphemeralState#

getEphemeralState(): any;

setEphemeralState#

setEphemeralState(state: any): void;

getIcon#

getIcon(): string;

onResize#

onResize(): void;

Called when the size of this view is changed.

getDisplayText#

abstract getDisplayText(): string;

onHeaderMenu#

onHeaderMenu(menu: Menu): void;