GcSpread.Sheets Namespace > Events type : CommentRemoving Event |
var instance; // Type: Events instance.CommentRemoving = function(sheet, sheetName, comment, cancel) { };
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.CommentRemoving, function (e, info) { info.cancel = true; });