SpreadJS 13
GC.Spread.Sheets.Tables Namespace / TableTheme type / firstFooterCellStyle Method
The style of the first footer cell.
In This Topic
    firstFooterCellStyle Method
    In This Topic
    Gets or sets the style of the first footer cell.
    Syntax
    var instance = new GC.Spread.Sheets.Tables.TableTheme();
    var returnValue; // Type: any
    returnValue = instance.firstFooterCellStyle(value);
    function firstFooterCellStyle( 
       value : TableStyle
    ) : any;

    Parameters

    value
    The style of the first footer cell.

    Return Value

    If no value is set, returns the style of the first footer cell; otherwise, returns the table theme.
    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 tableStyle = new GC.Spread.Sheets.Tables.TableTheme();
    var thinBorder = new GC.Spread.Sheets.LineBorder("black", GC.Spread.Sheets.LineStyle.dotted);
    tableStyle.wholeTableStyle(new GC.Spread.Sheets.Tables.TableStyle("aliceblue", "green", "bold 10pt arial", thinBorder, thinBorder, thinBorder, thinBorder, thinBorder, thinBorder));
    var tStyleInfo = new GC.Spread.Sheets.Tables.TableStyle();
    tStyleInfo.backColor = "green";
    tStyleInfo.foreColor = "red";
    tStyleInfo.borderBottom = new GC.Spread.Sheets.LineBorder("green", GC.Spread.Sheets.LineStyle.thin);
    tStyleInfo.borderLeft = new GC.Spread.Sheets.LineBorder("yellow", GC.Spread.Sheets.LineStyle.medium);
    tStyleInfo.borderTop = new GC.Spread.Sheets.LineBorder("green", GC.Spread.Sheets.LineStyle.thin);
    tStyleInfo.borderRight = new GC.Spread.Sheets.LineBorder("green", GC.Spread.Sheets.LineStyle.thin);
    tStyleInfo.font = "bold 11pt arial";
    tableStyle.lastFooterCellStyle(tStyleInfo);
    tableStyle.firstFooterCellStyle(tStyleInfo);
     
    var sTable = activeSheet.tables.add("table1", 1, 1, 10, 5, tableStyle);
    sTable.showFooter(true);
    //set footer value
    sTable.setColumnValue(0, "Total");
    //set footer formula
    sTable.setColumnFormula(4, "SUM(F3:F11)");
    sTable.highlightFirstColumn(true);
    sTable.highlightLastColumn(true);
    See Also

    Reference

    TableTheme type