SpreadJS Documentation
IconSetType Enumeration
Specifies the icon set.
Members
MemberDescription
FiveArrowsColoredSpecifies five colored arrows.
FiveArrowsGraySpecifies five gray arrows.
FiveBoxesSpecifies five boxes.
FiveQuartersSpecifies five quarters.
FiveRatingsSpecifies five ratings.
FourArrowsColoredSpecifies four colored arrows.
FourArrowsGraySpecifies four gray arrows.
FourRatingsSpecifies four ratings.
FourRedToBlackSpecifies four red to black icons.
FourTrafficLightsSpecifies four traffic lights.
ThreeArrowsColoredSpecifies three colored arrows.
ThreeArrowsGraySpecifies three gray arrows.
ThreeFlagsSpecifies three flags.
ThreeSignsSpecifies three signs.
ThreeStarsSpecifies three stars.
ThreeSymbolsCircledSpecifies three symbols (circled).
ThreeSymbolsUncircledSpecifies three symbols (uncircled).
ThreeTrafficLightsRimmedSpecifies three traffic lights (rimmed).
ThreeTrafficLightsUnrimmedSpecifies three traffic lights (unrimmed).
ThreeTrianglesSpecifies three trangles.
Example
This example creates a rule.
activeSheet.setValue(0,0,1,3);
activeSheet.setValue(1,0,15,3);
activeSheet.setValue(2,0,25,3);
activeSheet.setValue(3,0,-1,3);

var cfs = activeSheet.getConditionalFormats();
var iconSetRule = new GcSpread.Sheets.IconSetRule();
iconSetRule.ranges =[new GcSpread.Sheets.Range(0,0,4,1)];
iconSetRule.iconSetType(GcSpread.Sheets.IconSetType.FourTrafficLights);
var iconCriteria = iconSetRule.iconCriteria();
iconCriteria[0] = new GcSpread.Sheets.IconCriterion(true, GcSpread.Sheets.IconValueType.Number, 1);
iconCriteria[1] = new GcSpread.Sheets.IconCriterion(true, GcSpread.Sheets.IconValueType.Number, 10);
iconCriteria[2] = new GcSpread.Sheets.IconCriterion(true, GcSpread.Sheets.IconValueType.Number, 20);
iconSetRule.reverseIconOrder(false);
iconSetRule.showIconOnly(false);
cfs.addRule(iconSetRule);
Inheritance Hierarchy

Object
   GcSpread.Sheets.IconSetType

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.