SpreadJS Documentation
highlightLastColumn Method
Gets or sets a value that indicates whether to highlight the last column.
Syntax
var instance = new GcSpread.Sheets.SheetTable(name, row, col, rowCount, colCount, style);
var value; // Type: any
value = instance.highlightLastColumn();
function highlightLastColumn() : any;

Return Value

If a value is set, returns true if the table highlights the last column; otherwise, false. If the value is not set, it returns the table itself.
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.addTable("table1", 1, 1, 10, 5, GcSpread.Sheets.TableStyles.medium2());
sTable.highlightFirstColumn(true);
sTable.highlightLastColumn(true);
See Also

Reference

SheetTable type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.