SpreadJS Documentation
reset Method
Resets this instance.
Syntax
var instance = new GcSpread.Sheets.NumberCondition(compareType, expected, formula);
var value; // Type: any
value = instance.reset();
function reset() : any;
Example
This example uses the reset method.
<input type="button" id="button1" value="button1"/>

var nCondition = new GcSpread.Sheets.NumberCondition();
nCondition.compareType = GcSpread.Sheets.GeneralCompareType.GreaterThan;
nCondition.expected = 5;
var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition)
activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator);
spread.highlightInvalidData(true);
activeSheet.setValue(0, 0, 5);

$("#button1").click(function () {
activeSheet.isPaintSuspended(true);
nCondition.reset();
activeSheet.isPaintSuspended(false);
    });
See Also

Reference

NumberCondition type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.