Workspaceon(‘active-leaf-change’)

Workspace.on(‘active-leaf-change’) method

Triggered when the active leaf changes.

Signature:

on(name: 'active-leaf-change', callback: (leaf: WorkspaceLeaf | null) => any, ctx?: any): EventRef;

Parameters

ParameterTypeDescription
name’active-leaf-change’
callback(leaf: WorkspaceLeaf | null) any
ctxany(Optional)

Returns:

EventRef