InvalidPriceFormatter
is typically used in the XML Renderer Framework, but can be invoked programmatically
as in the following example which evaluates to "-":
caplin.element.formatter.InvalidPriceFormatter.format("0", {invalidPrice:"-"})
Attributes | Name and Description |
---|---|
|
caplin.element.formatter.InvalidPriceFormatter()
|
Attributes | Name and Description |
---|---|
|
String
format(Variant vValue, Map mAttributes)
Substitutes a token for the value if it is not a valid price (a positive number). |
►
caplin.element.formatter.InvalidPriceFormatter()
►
String
format(Variant vValue, Map mAttributes)
Substitutes a token for the value if it is not a valid price (a positive number).
Attribute Options:
Option | Description |
---|---|
invalidPrice | the replacement text in case of an invalid price (defaults to an empty string). |
Variant | vValue | the price (String or Number type). |
Map | mAttributes | the map of attributes. |