SpreadJS Documentation
showIconOnly Method
Whether to display the icon only.
Gets or sets whether to display the icon only.
Syntax
var instance = new GcSpread.Sheets.IconSetRule(iconSetType);
var returnValue; // Type: boolean
returnValue = instance.showIconOnly(value);
function showIconOnly( 
   value : boolean
) : boolean;

Parameters

value
Whether to display the icon only.

Return Value

The value that indicates whether to display the icon only.
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);
Remarks
The default value is false.
See Also

Reference

IconSetRule class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.