SpreadJS Documentation
comment Method
GC.Spread.Sheets Namespace > CellRange type : comment Method
The comment to set in the cell.
Gets or sets the comment for the cell.
Syntax
var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
var returnValue; // Type: Comment
returnValue = instance.comment(value);
function comment( 
   value : Comment
) : Comment;

Parameters

value
The comment to set in the cell.

Return Value

If no value is set, returns the comment in the cell; otherwise, returns the cell range.
Example
This example creates a cell comment.
var comment = new GC.Spread.Sheets.Comments.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown);
activeSheet.getCell(5,5).comment(comment);
See Also

Reference

CellRange type