Attributes | Name and Description |
---|---|
|
caplin.element.formatter.TemplateFormatter()
|
Attributes | Name and Description |
---|---|
|
String
format(Variant vValue, Map mAttributes)
Formats a value using a template, using the token {0} to represent the field value. |
►
caplin.element.formatter.TemplateFormatter()
►
String
format(Variant vValue, Map mAttributes)
Formats a value using a template, using the token {0} to represent the field value.
TemplateFormatter
is typically used in the XML Renderer Framework, but can be invoked programmatically
as in the following example which evaluates to "30 Year":
caplin.element.formatter.TemplateFormatter.format(30, {template: "{0} Year")
Attribute Options:
Option | Description |
---|---|
template | the template to use |
Variant | vValue | the string. |
Map | mAttributes | the map of attributes. |