# toolPanelToggled

Emitted when column/filter tool panel visibility changes.

Canonical: https://grid.syidax.com/docs/events/toolPanelToggled/

<a id="meaning"></a>

## What does this API do?

Emitted when column/filter tool panel visibility changes.

API for Pro features: Columns / Filters tool panels

<a id="contract"></a>

## Exact input and result types

```typescript
toolPanelToggled: { id: SideBarPanelId; open: boolean }
```

<a id="usage"></a>

## Usage flow

Subscribe with grid.addEventListener('toolPanelToggled', 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('toolPanelToggled', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="types"></a>

## Read related types

- [SideBarPanelId](https://grid.syidax.com/docs/types/SideBarPanelId.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Tool panel](https://grid.syidax.com/docs/features/tool-panels.md) — Tool panels collect cross-column tasks such as visibility and filter settings. They separate data space from settings space and open only when needed.
