SpreadJS 13
GC.Spread.Sheets.Tables Namespace / Table type / insertRows Method
The index of the starting row to insert, based on table index.
The number of rows to add.
Whether insert rows before the specified row index or after. By default, insert before.
In This Topic
    insertRows Method
    In This Topic
    Insert rows in this table before the specified table row index.
    Syntax
    var instance = new GC.Spread.Sheets.Tables.Table(name,
                                                    row,
                                                    col,
                                                    rowCount,
                                                    colCount,
                                                    style,
                                                    options,
                                                    options.showHeader,
                                                    options.showFooter,
                                                    options.useFooterDropDownList,
                                                    options.showResizeHandle);
    instance.insertRows(row, count, isInsertAfter);
    function insertRows( 
       row : number,
       count : number,
       isInsertAfter : boolean
    ) : void;

    Parameters

    row
    The index of the starting row to insert, based on table index.
    count
    The number of rows to add.
    isInsertAfter
    Whether insert rows before the specified row index or after. By default, insert before.
    Example
    var table = activeSheet.tables.add("table1", 1, 1, 10, 5, GC.Spread.Sheets.Tables.TableTheme.medium2);
    table.insertRows(3, 1);
    See Also

    Reference

    Table type