SpreadJS Documentation
DisplayMode Field
GC.Spread.Sheets Namespace > Comments type : DisplayMode Field
Defines when the comment is displayed.
Syntax
var value; // Type: DisplayMode
value = GC.Spread.Sheets.Comments.DisplayMode;
var DisplayMode : DisplayMode;
Example
//This example uses the DisplayMode enumeration.
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

Comments type