<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`WorkspaceLeaf`](WorkspaceLeaf) › [on('group-change')](WorkspaceLeaf/on('group-change').md)
## WorkspaceLeaf.on('group-change') method
**Signature:**
```typescript
on(name: 'group-change', callback: (group: string) => any, ctx?: any): EventRef;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>name</code> | <code>'group-change'</code> | |
| <code>callback</code> | <code>(group: string) => any</code> | |
| <code>ctx</code> | <code>any</code> | _(Optional)_ |
**Returns:**
[`EventRef`](EventRef)