SpreadJS Documentation
compareType Field
Indicates the type of comparison.
Syntax
var instance = new GcSpread.Sheets.CellValueCondition(compareType, expected, formula);
var value; // Type: GeneralCompareType
value = instance.compareType;
var compareType : GeneralCompareType;
Example
This example creates a cell value condition.
var nCondition = new GcSpread.Sheets.CellValueCondition();
nCondition.compareType = GcSpread.Sheets.GeneralCompareType.GreaterThan;
nCondition.formula = "$C$1";
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);
activeSheet.setValue(0, 2, 4);
See Also

Reference

CellValueCondition type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.