# chunkLoading

기능 코드 조각의 로딩이 시작되었을 때 발생합니다. 행 데이터 조회 이벤트와 구분합니다.

Canonical: https://grid.syidax.com/ko/docs/events/chunkLoading/

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

## 무엇을 하는 API인가요

기능 코드 조각의 로딩이 시작되었을 때 발생합니다. 행 데이터 조회 이벤트와 구분합니다.

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

## 입력과 결과의 정확한 타입

```typescript
chunkLoading: GridChunkLoadEventDetail
```

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

## 사용 흐름

grid.addEventListener('chunkLoading', handler)로 구독합니다. 실제 결과는 event.detail에 들어 있고 이름의 대소문자를 구분합니다. 화면을 닫을 때 구독을 해제하세요.

```javascript
const controller = new AbortController();
grid.addEventListener('chunkLoading', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// 화면을 해제할 때 controller.abort();
```

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

## 관련 타입 읽기

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

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

## 기능별 설명과 예제

- [설정과 데이터의 기본 원리](https://grid.syidax.com/ko/docs/guides/concepts.md)
- [API 호출과 이벤트 연결](https://grid.syidax.com/ko/docs/guides/data-event-access.md)
