Workspace.iterateRootLeaves method
Workspace › iterateRootLeaves
Official
Iterate through all leaves in the main area of the workspace.Signature:
iterateRootLeaves(callback: (leaf: WorkspaceLeaf) => unknown): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| callback | (leaf: WorkspaceLeaf) => unknown | The callback to call for each leaf. |
Returns: void
Since: 0.9.7