Skip to content

Workspace.getLeafById method

Workspace › getLeafById

Official

Retrieve a leaf by its id.

Signature:

getLeafById(id: string): WorkspaceLeaf | null

Parameters:

ParameterTypeDescription
idstringThe leaf ID.

Returns: WorkspaceLeaf | null — The leaf, or null if no leaf has this ID.

Since: 1.5.1