Skip to content

Workspace.iterateTabs method

Workspace › iterateTabs

Unofficial

Iterate the tabs of a split till meeting a condition.

Signature:

iterateTabs(tabs: WorkspaceSplit | WorkspaceSplit[], cb: (leaf: WorkspaceLeaf) => boolean): boolean

Parameters:

ParameterTypeDescription
tabsWorkspaceSplit | WorkspaceSplit[]The split(s) to iterate.
cb(leaf: WorkspaceLeaf) => booleanThe callback to call for each leaf. Return true to stop.

Returns: booleanWhether the iteration was stopped early.