WorkspaceLeaf.on method
WorkspaceLeaf › on
on has 4 overloads, each on a page of its own:
| Overload | Description |
|---|---|
on('group-change', callback, ctx?) |
Handle the group-change event. |
on('history-change', callback, ctx?) |
Triggers when the leaf’s history gets updated (e.g. when new file is opened, or moving through history). |
on('leaf-menu', callback, ctx?) |
Triggers when context menu action is executed on the leaf. |
on('pinned-change', callback, ctx?) |
Handle the pinned-change event. |