addCellComment
On this page
Add a comment (note) to a cell.
Initialises the cell's comment array if it does not yet exist, then appends a new comment entry.
addCellComment(cell: CellObject, text: string, author?: string): void
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cell | CellObject | Yes | The cell object to modify |
text | string | Yes | The comment text content |
author | string | No | Optional author name (defaults to "SheetJS") |
Returns
void