SpreadJS Documentation
name Method
GC.Spread.Sheets Namespace > Worksheet type : name Method
name of the worksheet.
Gets or sets the name of the worksheet.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: any
value = instance.name(The);
function name( 
   The : string
) : any;

Parameters

The
name of the worksheet.

Return Value

If no value is set, returns the worksheet name; otherwise, returns the worksheet.
Example
This example sets the sheet name.
spread.sheets[0].name("The first sheet");
spread.sheets[1].name( "The second sheet");
This example sets the name for the active sheet.
activeSheet.name("Test");
This example returns the name of the active sheet.
var name = activeSheet.name();
alert(name);
See Also

Reference

Worksheet type