API REFERENCE

columnGroupToggled

Emitted when a column group header expands or collapses. Read groupId and open for its state.

What does this API do?

Emitted when a column group header expands or collapses. Read groupId and open for its state.

Exact input and result types

typescript
columnGroupToggled: { groupId: string; open: boolean }

Usage flow

Subscribe with grid.addEventListener('columnGroupToggled', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

javascript
const controller = new AbortController();
grid.addEventListener('columnGroupToggled', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Feature explanations and examples