SpreadJS Documentation
reset Method
Resets this instance.
Syntax
var instance = new GcSpread.Sheets.Top10Condition(type, rank, ranges);
var value; // Type: any
value = instance.reset();
function reset() : any;
Example
This example uses the reset method.
activeSheet.isPaintSuspended(true);
for (var row = 0; row < 25; row++) {
    activeSheet.setValue(row, 0, row, GcSpread.Sheets.SheetArea.viewport);
}
var rowFilter = new GcSpread.Sheets.HideRowFilter(new GcSpread.Sheets.Range(0, 0, 25, 1));
activeSheet.rowFilter(rowFilter);
var top10Con = new GcSpread.Sheets.Top10Condition(GcSpread.Sheets.Top10ConditionType.Top, 10);
var filter = activeSheet.rowFilter();
filter.addFilterItem(0, top10Con);
filter.filter(0);
activeSheet.isPaintSuspended(false);
top10Con.reset();
See Also

Reference

Top10Condition type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.