SpreadJS Documentation
getActiveSheet Method
Gets the active sheet.
Syntax
var instance = new GcSpread.Sheets.Spread(host, options);
var value; // Type: Sheet
value = instance.getActiveSheet();
function getActiveSheet() : Sheet;

Return Value

The active sheet instance.
Example
var activeSheet = spread.getActiveSheet();

//Map the created action to the Enter key.
activeSheet.addKeyMap(GcSpread.Sheets.Key.enter, false, false, false, false, ColorAction);

function ColorAction(){
//Click on a cell and press the Enter key.
activeSheet.getCell(activeSheet.getActiveRowIndex(), activeSheet.getActiveColumnIndex())
        .backColor("red");
}
See Also

Reference

Spread type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.