SpreadJS 13
SpreadJS Documentation / Sample Code / Sample Code for Frequently Used Events / Using Events when Moving a Cell
In This Topic
    Using Events when Moving a Cell
    In This Topic

    You can use events when moving a cell.

    Using Code

    This example uses the LeaveCell event.

    JavaScript
    Copy Code
    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
    var activeSheet = spread.getActiveSheet();
    
    activeSheet.bind(GC.Spread.Sheets.Events.LeaveCell, function (sender, args) 
    {
        console.log("The column index before moving: " + args.col);
        console.log("The row index before moving: " + args.row);    
    });
    
    See Also

    Developer's Guide