Workspace.setActiveLeaf() method
Sets the active leaf
Signature:
setActiveLeaf(leaf: WorkspaceLeaf, params?: {
focus?: boolean;
}): void;
Parameters
Parameter | Type | Description |
---|---|---|
leaf | WorkspaceLeaf | The new active leaf |
params | { focus?: boolean; } | (Optional) Parameter object of whether to set the focus. |
Returns:
void