Constructor
new module:br/formatting/TrimFormatter()
- Implements:
- Source:
Methods
-
format(vValue, mAttributes)
-
Trims whitespace from boths ends of the string.
TrimFormatteris typically used with Presenter, but can be invoked programmatically as in the following example which evaluates to "Buy USD":br.formatting.TrimFormatter.format(" Buy USD ", {})Parameters:
Name Type Description vValueVariant the string to trim. mAttributesMap the map of attributes. - Implements:
- Source:
Returns:
the trimmed string.