# addCellComment

협업 세션에서 셀 댓글을 추가하고 ID 또는 null을 반환합니다. 활성 세션이 필요합니다.

Canonical: https://grid.syidax.com/ko/docs/methods/addCellComment/

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

## 무엇을 하는 API인가요

협업 세션에서 셀 댓글을 추가하고 ID 또는 null을 반환합니다. 활성 세션이 필요합니다.

Pro 기능 관련 API: Cell notes editing

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

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

```typescript
addCellComment(rowId: string | number, field: string, text: string, parentId?: string): Promise<string | null>
```

| 인수 | 필수 여부 | 타입 |
| --- | --- | --- |
| rowId | 필수 | string \| number |
| field | 필수 | string |
| text | 필수 | string |
| parentId | 선택 | string |

반환 타입은 `Promise<string | null>`입니다.

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

## 사용 흐름

등록과 초기화를 마친 Grid 요소에서 grid.addCellComment(…)를 호출합니다. 반환값은 await로 읽으세요. boolean이나 보고서를 반환하는 메서드는 결과를 확인한 뒤 다음 작업을 진행합니다.

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

## 기능별 설명과 예제

- [셀 메모](https://grid.syidax.com/ko/docs/features/cell-notes.md) — 셀 메모는 값 자체를 바꾸지 않고 검토 이유나 추가 설명을 남깁니다. 독립 셀 메모와 협업 세션의 댓글 스레드는 저장 방식과 API가 다르므로 먼저 원하는 방식을 선택합니다.
