SpreadJS Documentation
SheetTabClick Event
The sheet that triggered the event.
The sheet's name.
The index of the sheet tab that the user clicked.
Occurs when the user clicks the sheet tab.
Syntax
var instance; // Type: Events
instance.SheetTabClick = function(sheet, sheetName, sheetTabIndex) { };
SheetTabClick = function ( 
   sheet : Sheet,
   sheetName : string,
   sheetTabIndex : number
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
sheetTabIndex
The index of the sheet tab that the user clicked.
Example
This example uses the SheetTabClick event.
$("#spreadContainer").data("spread"). bind(GcSpread.Sheets.Events.SheetTabClick, function (e, info) {    
        alert("Index (" + info.sheetTabIndex + ")");
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.