Skip to content

WorkspaceParent

Extends

Extended by

Constructors

new WorkspaceParent()

new WorkspaceParent(): WorkspaceParent

Returns

WorkspaceParent

Inherited from

WorkspaceItem.constructor

Properties

_

_: Record<string, EventsEntry[]>

Inherited from

WorkspaceItem._


app

app: App

Inherited from

WorkspaceItem.app


component

component: Component

Inherited from

WorkspaceItem.component


containerEl

containerEl: HTMLDivElement

Inherited from

WorkspaceItem.containerEl


dimension

dimension: null | number

Inherited from

WorkspaceItem.dimension


id

id: string

Inherited from

WorkspaceItem.id


parent

abstract parent: WorkspaceParent

The direct parent of the leaf.

Inherited from

WorkspaceItem.parent


parentSplit?

readonly optional parentSplit: WorkspaceParent

Inherited from

WorkspaceItem.parentSplit


resizeHandleEl

resizeHandleEl: HTMLHRElement

Inherited from

WorkspaceItem.resizeHandleEl


type

type: string

Inherited from

WorkspaceItem.type


workspace

workspace: Workspace

Inherited from

WorkspaceItem.workspace

Methods

detach()

detach(): void

Returns

void

Inherited from

WorkspaceItem.detach


getContainer()

getContainer(): WorkspaceContainer

Get the root container parent item, which can be one of:

Returns

WorkspaceContainer

Inherited from

WorkspaceItem.getContainer


getIcon()

getIcon(): string

Returns

string

Inherited from

WorkspaceItem.getIcon


getRoot()

getRoot(): WorkspaceItem

Returns

WorkspaceItem

Inherited from

WorkspaceItem.getRoot


off()

off(name, callback): void

Parameters

name: string

callback

Returns

void

Inherited from

WorkspaceItem.off


offref()

offref(ref): void

Parameters

ref: EventRef

Returns

void

Inherited from

WorkspaceItem.offref


on()

on(name, callback, ctx?): EventRef

Parameters

name: string

callback

ctx?: any

Returns

EventRef

Inherited from

WorkspaceItem.on


onResizeStart()

onResizeStart(evt): void

Parameters

evt: MouseEvent

Returns

void

Inherited from

WorkspaceItem.onResizeStart


serialize()

serialize(): SerializedWorkspaceItem

Returns

SerializedWorkspaceItem

Inherited from

WorkspaceItem.serialize


setDimension()

setDimension(dimension): void

Parameters

dimension: null | number

Returns

void

Inherited from

WorkspaceItem.setDimension


setParent()

setParent(parent): void

Parameters

parent: WorkspaceParent

Returns

void

Inherited from

WorkspaceItem.setParent


trigger()

trigger(name, …data): void

Parameters

name: string

• …data: unknown[]

Returns

void

Inherited from

WorkspaceItem.trigger


tryTrigger()

tryTrigger(evt, args): void

Parameters

evt: EventRef

args: unknown[]

Returns

void

Inherited from

WorkspaceItem.tryTrigger