SpreadJS Documentation
SheetNameChanged Event
The sheet that triggered the event.
The sheet's old name.
The sheet's new name.
Occurs when the user has changed the sheet name.
Syntax
var instance; // Type: Events
instance.SheetNameChanged = function(sheet, oldValue, newValue) { };
SheetNameChanged = function ( 
   sheet : Sheet,
   oldValue : string,
   newValue : string
) { };

Parameters

sheet
The sheet that triggered the event.
oldValue
The sheet's old name.
newValue
The sheet's new name.
Example
This example uses the SheetNameChanged event.
// Use IE to see the console log text
spread.bind(GcSpread.Sheets.Events.SheetNameChanging, function (sender, args) {
   console.log(args.oldValue);
});

spread.bind(GcSpread.Sheets.Events.SheetNameChanged, function (sender, args) {
   console.log(args.newValue);
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.