SpreadJS 13
GC.Spread.Sheets.ConditionalFormatting Namespace / DataBarRule class / evaluate Method
The evaluator.
The row index.
The column index.
The current value.
In This Topic
    evaluate Method
    In This Topic
    Returns the specified value of the rule if the cell meets the condition.
    Syntax
    var instance = new GC.Spread.Sheets.ConditionalFormatting.DataBarRule(minType, minValue, maxType, maxValue, color, ranges);
    var value; // Type: Object
    value = instance.evaluate(evaluator, baseRow, baseColumn, actual);
    function evaluate( 
       evaluator : Object,
       baseRow : number,
       baseColumn : number,
       actual : Object
    ) : Object;

    Parameters

    evaluator
    The evaluator.
    baseRow
    The row index.
    baseColumn
    The column index.
    actual
    The current value.

    Return Value

    The specified value of the rule if the cell meets the condition.
    See Also