SpreadJS 14
GC.Spread.Sheets Namespace / Events type / CommentRemoved Event
The sheet that triggered the event.
The sheet's name.
The comment has been removed.
In This Topic
    CommentRemoved Event
    In This Topic
    Occurs when the user has removed the comment.
    Syntax
    var instance; // Type: Events
    instance.CommentRemoved = function(sheet, sheetName, comment) { };
    CommentRemoved = function ( 
       sheet : Worksheet,
       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 GC.Spread.Sheets.Comments.Comment();
    comment.text("new comment!");
    comment.backColor("orange");
    comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown);
    activeSheet.getCell(5,5).comment(comment);
    
    activeSheet.bind(GC.Spread.Sheets.Events.CommentRemoved, function (e, info) {    
           console.log("sheet name: " + info.sheetName);
    });
    
    See Also

    Reference

    Events type