# cellStyle

셀에 적용할 인라인 스타일 객체·콜백 또는 이들의 배열입니다.

Canonical: https://grid.syidax.com/ko/docs/columns/cellStyle/

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

## 무엇을 하는 API인가요

셀에 적용할 인라인 스타일 객체·콜백 또는 이들의 배열입니다.

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

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

```typescript
cellStyle?: | Record<string, string | number>
    | GridCallback<
        [CellCallbackParams<TData, TValue, TContext>],
        Record<string, string | number> | null | undefined
      >
    | ReadonlyArray<
        | Record<string, string | number>
        | GridCallback<
            [CellCallbackParams<TData, TValue, TContext>],
            Record<string, string | number> | null | undefined
          >
      >
```

| 항목 | 값 |
| --- | --- |
| 필수 여부 | 선택 |
| 입력 타입 | \| Record<string, string \| number><br>    \| GridCallback<<br>        [CellCallbackParams<TData, TValue, TContext>],<br>        Record<string, string \| number> \| null \| undefined<br>      ><br>    \| ReadonlyArray<<br>        \| Record<string, string \| number><br>        \| GridCallback<<br>            [CellCallbackParams<TData, TValue, TContext>],<br>            Record<string, string \| number> \| null \| undefined<br>          ><br>      > |

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

## 사용 흐름

이 항목은 columnDefs 배열 안의 개별 열 객체에 설정합니다. 배열·객체·콜백 함수는 JavaScript로 전달하고, 변경을 반영할 때 새 배열이나 객체를 사용하세요.

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

## 관련 타입 읽기

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

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

## 기능별 설명과 예제

- [셀 표현 바꾸기](https://grid.syidax.com/ko/docs/features/custom-cells.md) — 셀 렌더러는 데이터의 표시 방법을 바꿉니다. 상태 배지·링크·액션 버튼이 필요한 경우 사용하되 정렬·필터에 사용할 원본 값은 별도로 유지합니다.
