SpreadJS Documentation
LeaveCell Event
The sheet that triggered the event.
The sheet's name.
The row index of the cell being left.
The column index of the cell being left.
Whether the operation should be canceled.
Occurs when the focus leaves a cell.
Syntax
var instance; // Type: Events
instance.LeaveCell = function(sheet, sheetName, row, col, cancel) { };
LeaveCell = function ( 
   sheet : Sheet,
   sheetName : string,
   row : number,
   col : number,
   cancel : boolean
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
row
The row index of the cell being left.
col
The column index of the cell being left.
cancel
Whether the operation should be canceled.
Example
This example creates log text for the LeaveCell event.
// Use IE to see the console log text
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

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.