SpreadJS Documentation
filterButtonVisible Method
The table column index of the filter button.
Whether the table column's filter button is displayed.
Gets or sets whether the table column's filter button is displayed.
Syntax
var instance = new GcSpread.Sheets.SheetTable(name, row, col, rowCount, colCount, style);
var returnValue; // Type: boolean
returnValue = instance.filterButtonVisible(tableColumnIndex, value);
function filterButtonVisible( 
   tableColumnIndex : number,
   value : boolean
) : boolean;

Parameters

tableColumnIndex
The table column index of the filter button.
value
Whether the table column's filter button is displayed.

Return Value

The table column's filter button display state.
Example
This example hides a filter button.
//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.bandColumns(true);
sTable.bandRows(true);
sTable.filterButtonVisible(2, false);
alert(sTable.filterButtonVisible(2));
See Also

Reference

SheetTable type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.