SpreadJS 13
GC.Spread.Sheets.ConditionalFormatting Namespace / ConditionRuleBase type / priority Method
The priority of the rule.
In This Topic
    priority Method
    In This Topic
    Gets or sets the priority of the rule.
    var instance = new GC.Spread.Sheets.ConditionalFormatting.ConditionRuleBase(ruleType, style, ranges);
    var returnValue; // Type: any
    returnValue = instance.priority(value);
    function priority( 
       value : number
    ) : any;


    The priority of the rule.

    Return Value

    If no value is set, returns the priority of the rule; otherwise, returns the condition rule.

    The value returned is used to determine which format should be evaluated and rendered. Lower numeric values have a higher priority than higher numeric values. The highest priority is 1.

    See Also