Workspace.getLeafById method
Workspace › getLeafById
Official
Retrieve a leaf by its id.Signature:
getLeafById(id: string): WorkspaceLeaf | nullParameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | The leaf ID. |
Returns: WorkspaceLeaf | null — The leaf, or null if no leaf has this ID.
Since: 1.5.1