Workspace
› on(‘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
Parameter | Type | Description |
---|---|---|
name | ’active-leaf-change’ | |
callback | (leaf: WorkspaceLeaf | null) ⇒ any | |
ctx | any | (Optional) |
Returns: