# GridRendererDiscovery

GridRendererDiscovery의 필드와 허용 값, 이 타입을 사용하는 API입니다.

Canonical: https://grid.syidax.com/ko/docs/types/GridRendererDiscovery/

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

## 타입 정의

물음표(?)는 선택 항목이고 readonly는 직접 변경하지 않는 값입니다. 유니온(|)은 허용된 형태 중 하나를 뜻합니다. 함수는 해당 시점에 Grid가 호출할 콜백입니다.

```typescript
export type GridRendererDiscovery<
  TRow = Record<string, unknown>,
  TValue = unknown,
  TContext = unknown,
> =
  | {
      readonly status: 'mounted';
      readonly key: string;
      readonly identity: GridRendererCellIdentity;
      readonly generation: number;
      readonly host: GridRendererHost;
      readonly instance: GridRendererInstance<TRow, TValue, TContext>;
      readonly gui: GridRendererGui;
      readonly params: GridRendererParams<TRow, TValue, TContext>;
    }
  | {
      readonly status: 'logical-offscreen';
      readonly key: string;
      readonly identity: GridRendererCellIdentity;
      readonly lastGeneration?: number;
    }
  | {
      readonly status: 'unavailable';
      readonly key: string;
    }
  | {
      readonly status: 'stale';
      readonly key: string;
      readonly requestedGeneration: number;
      readonly currentGeneration?: number;
    };
```

<a id="used-by"></a>

## 이 타입을 사용하는 API

- [getCellRendererInstance](https://grid.syidax.com/ko/docs/methods/getCellRendererInstance.md) — 현재 마운트된 셀 렌더러 인스턴스를 조회합니다. 가상화로 화면 밖 셀은 마운트되지 않을 수 있습니다.

<a id="parents"></a>

## 이 타입을 포함하는 계약

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

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

## 연결된 타입

- [GridRendererCellIdentity](https://grid.syidax.com/ko/docs/types/GridRendererCellIdentity.md)
- [GridRendererHost](https://grid.syidax.com/ko/docs/types/GridRendererHost.md)
- [GridRendererInstance](https://grid.syidax.com/ko/docs/types/GridRendererInstance.md)
- [GridRendererGui](https://grid.syidax.com/ko/docs/types/GridRendererGui.md)
- [GridRendererParams](https://grid.syidax.com/ko/docs/types/GridRendererParams.md)
