WorkspaceLeaf

WorkspaceLeaf class

Signature:

export class WorkspaceLeaf extends WorkspaceItem 

Extends: WorkspaceItem

Properties

PropertyModifiersTypeDescription
isDeferredreadonlybooleanReturns true if this leaf is currently deferred because it is in the background. A deferred leaf will have a DeferredView as its view, instead of the View that it should normally have for its type (like MarkdownView for the markdown type). 1.7.2
parentWorkspaceTabs | WorkspaceMobileDrawer

The direct parent of the leaf.

On desktop, a leaf is always a child of a WorkspaceTabs component. On mobile, a leaf might be a child of a WorkspaceMobileDrawer. Perform an instanceof check before making an assumption about the parent.

viewViewThe view associated with this leaf. Do not attempt to cast this to your custom View without first checking instanceof.

Methods