SpreadJS Documentation
UniqueRule Constructor
The cell style.
Represents a unique condition rule.
Syntax
var instance = new GcSpread.Sheets.UniqueRule(style);
function UniqueRule( 
   style : Style
) : UniqueRule;

Parameters

style
The cell style.
Example
This example creates a rule.
var style = new GcSpread.Sheets.Style(); 
style.backColor = "green"; 
var rule = new GcSpread.Sheets.UniqueRule(style); 
rule.ranges=[new GcSpread.Sheets.Range(0,0,10,1)]; 
activeSheet.getConditionalFormats().addRule(rule); 
activeSheet.setValue(0, 0, 50); 
activeSheet.setValue(1, 0, 50); 
activeSheet.setValue(2, 0, 11); 
activeSheet.setValue(3, 0, 5);
See Also

Reference

UniqueRule class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.