Skip to content

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

NameTypeRequiredDescription
cellCellObjectYesThe cell object to modify
textstringYesThe comment text content
authorstringNoOptional author name (defaults to "SheetJS")

Returns

void