Class: module:br/formatting/TrimFormatter

module:br/formatting/TrimFormatter

Trims whitespace from boths ends of the string.

Constructor

new module:br/formatting/TrimFormatter()

Implements:
Source:

Methods

format(vValue, mAttributes)

Trims whitespace from boths ends of the string.

TrimFormatter is 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
vValue Variant the string to trim.
mAttributes Map the map of attributes.
Implements:
Source:
Returns:
the trimmed string.