SpreadJS Documentation
formula Field
The expected formula.
Syntax
var instance = new GcSpread.Sheets.FormulaCondition(customValueType, formula);
var value; // Type: string
value = instance.formula;
var formula : string;
Example
This example creates a formula condition.
var nCondition = new GcSpread.Sheets.FormulaCondition();
nCondition.customValueType = GcSpread.Sheets.CustomValueType.Formula;
nCondition.formula = "A1>0";
var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition)
activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator);
spread.highlightInvalidData(true);
activeSheet.setValue(0, 0, -4);
See Also

Reference

FormulaCondition type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.