SpreadJS Documentation
Using Events when Moving a Cell

You can use events when moving a cell.

Using Code

This example uses the LeaveCell event.

JavaScript
Copy Code
var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3});
var activeSheet = spread.getActiveSheet();

activeSheet.bind(GcSpread.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

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.