PATH Documentation > WebObjects

Table of Contents

WOThresholdColoredNumber



Component Description

The WOThresholdColoredNumber component displays a number in one of two colors depending on whether the number is above or below a threshold.


Synopsis

WOThresholdColoredNumber { lowColor=hexString; highColor=hexString; threshold=aNumber; value=aNumber; [numberformat=numberFormatString;] };

Bindings

lowColor
The color in which the number is rendered when the number is below the threshold. Defaults to "#FF0000".
highColor
The color in which the number is rendered when the number is equal to or above the threshold. Defaults to "#00FF00".
threshold
The threshold at which the number's rendered color is changed.
value
The displayed number.
numberformat
A format string that specifies how value should be formatted as a number. If the value can't be interpreted according to the format you specify, the value is set to nil. See the NSNumberFormatter class specification for a description of the number format syntax.

Table of Contents