SpreadJS Documentation > Sample Code > Sample Code for Frequently Used Events > Using Events when Edit Mode Starts or Stops |
You can use events when edit mode starts or stops.
This example uses the EditStarting and EditEnded events.
JavaScript |
Copy Code
|
---|---|
var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3}); var activeSheet = spread.getActiveSheet(); activeSheet.bind(GcSpread.Sheets.Events.EditStarting, function (sender, args) { console.log("Start cell editing."); }); activeSheet.bind(GcSpread.Sheets.Events.EditEnded, function (sender, args) { console.log("Finish cell editing."); }); |