Workspace โ€บ setActiveLeaf

Workspace.setActiveLeaf() method

Sets the active leaf

Signature:

setActiveLeaf(leaf: WorkspaceLeaf, params?: {
        focus?: boolean;
    }): void;

Parameters

ParameterTypeDescription
leafWorkspaceLeafThe new active leaf
params{ focus?: boolean; }(Optional) Parameter object of whether to set the focus.

Returns:

void