SpreadJS Documentation
CommentRemoved Event
The sheet that triggered the event.
The sheet's name.
The comment has been removed.
Occurs when the user has removed the comment.
Syntax
var instance; // Type: Events
instance.CommentRemoved = function(sheet, sheetName, comment) { };
CommentRemoved = function ( 
   sheet : Sheet,
   sheetName : string,
   comment : Comment
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
comment
The comment has been removed.
Example
This example uses the CommentRemoved event.
var comment = new GcSpread.Sheets.Comment();
comment.text("new comment!");
comment.backColor("orange");
comment.displayMode(GcSpread.Sheets.DisplayMode.AlwaysShown);
activeSheet.setComment(5,5,comment);

$("#spreadContainer").data("spread").getActiveSheet().bind(GcSpread.Sheets.Events.CommentRemoved, function (e, info) {    
       console.log("sheet name: " + info.sheetName);
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.