SpreadJS 13
GC.Spread.Sheets.Tables Namespace / Table type / name Method
The table name.
In This Topic
    name Method
    In This Topic
    Gets or sets the table name.
    Syntax
    var instance = new GC.Spread.Sheets.Tables.Table(name,
                                                    row,
                                                    col,
                                                    rowCount,
                                                    colCount,
                                                    style,
                                                    options,
                                                    options.showHeader,
                                                    options.showFooter,
                                                    options.useFooterDropDownList,
                                                    options.showResizeHandle);
    var returnValue; // Type: any
    returnValue = instance.name(value);
    function name( 
       value : string
    ) : any;

    Parameters

    value
    The table name.

    Return Value

    If no value is set, returns the table name; otherwise, returns the table.
    Example
    This example creates a table.
    //Add data
    for (var col = 1; col < 6; col++) {
        for (var row = 2; row < 11; row++) {
            activeSheet.setValue(row, col, row + col);
        }
    }
    
    var sTable = activeSheet.tables.add("table1", 1, 1, 10, 5, GC.Spread.Sheets.Tables.TableTheme.medium2);
    var tname = sTable.name();
    alert(tname);
    See Also

    Reference

    Table type