NullValueFormatter
is typically used in the XML Renderer Framework, but can be invoked programmatically
as in the following example which evaluates to "N/A":
caplin.element.formatter.NullValueFormatter.format("", {nullValue:"N/A"})
Attributes | Name and Description |
---|---|
|
caplin.element.formatter.NullValueFormatter()
|
Attributes | Name and Description |
---|---|
|
String
format(Variant vValue, Map mAttributes)
Substitutes replacement text when the string is void (null, undefined, or the empty string). |
►
caplin.element.formatter.NullValueFormatter()
►
String
format(Variant vValue, Map mAttributes)
Substitutes replacement text when the string is void (null, undefined, or the empty string).
Attribute Options:
Option | Description |
---|---|
nullValue | the replacement text to substitute in case of a null string (defaults to an empty string) |
Variant | vValue | the string. |
Map | mAttributes | the map of attributes. |