SpreadJS Documentation > Sample Code > Sample Code for Frequently Used Events > Using Events when Data Changes |
You can use events when the data in a cell changes.
This example uses the EditChange event.
JavaScript |
Copy Code
|
---|---|
var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3}); var activeSheet = spread.getActiveSheet(); activeSheet.bind(GcSpread.Sheets.Events.EditChange, function (sender, args) { console.log("Cell (" + args.row + ", " + args.col + ") data has been changed.") }); |