# sectionToggled

CustomEvent.detail 타입: { index: number; sectionId: string; disabled: boolean }. 이벤트 이름은 대소문자를 구분합니다.

Canonical: https://chart.syidax.com/ko/docs/events/sectionToggled/

<a id="definition"></a>

## 정의

이벤트 이름: `sectionToggled`. 대소문자를 구분합니다. payload는 `CustomEvent<{ index: number; sectionId: string; disabled: boolean }>`의 `detail`에서 읽습니다.

```javascript
chart.addEventListener('sectionToggled', event => {
  console.log(event.detail); // { index: number; sectionId: string; disabled: boolean }
});
```

<a id="related"></a>

## 관련 차트

- [sy-funnel-chart](https://chart.syidax.com/ko/docs/components/funnel.md#event-sectionToggled)
- [sy-funnel-chart](https://chart.syidax.com/ko/docs/components/pyramid.md#event-sectionToggled)
