SpreadJS 13
GC.Spread.Sheets.ConditionalFormatting Namespace / ConditionRuleBase type / evaluate Method
The object that can evaluate a condition.
The row index.
The column index.
The actual value.
In This Topic
    evaluate Method
    In This Topic
    Returns the cell style of the rule if the cell satisfies the condition.
    Syntax
    var instance = new GC.Spread.Sheets.ConditionalFormatting.ConditionRuleBase(ruleType, style, ranges);
    var value; // Type: Style
    value = instance.evaluate(evaluator, baseRow, baseColumn, actual);
    function evaluate( 
       evaluator : Object,
       baseRow : number,
       baseColumn : number,
       actual : Object
    ) : Style;

    Parameters

    evaluator
    The object that can evaluate a condition.
    baseRow
    The row index.
    baseColumn
    The column index.
    actual
    The actual value.

    Return Value

    The cell style of the rule.
    See Also