Skip to content

Workspace.getLeavesOfType method

Workspace › getLeavesOfType

Official

Get all leaves of a given type.

Signature:

getLeavesOfType(viewType: string): WorkspaceLeaf[]

Parameters:

ParameterTypeDescription
viewTypestringThe type of the view to get.

Returns: WorkspaceLeaf[] — The leaves of the given type.

Since: 0.9.7