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

    Parameters

    value
    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