- Implementations:
- module:br/presenter/formatter/DateFormatter
- module:br/presenter/formatter/DecimalFormatter
- module:br/presenter/formatter/KeyValueFormatter
- module:br/presenter/formatter/LeadingZeroFormatter
- module:br/presenter/formatter/LocalisedAmountFormatter
- module:br/presenter/formatter/LowerCaseFormatter
- module:br/presenter/formatter/NullValueFormatter
- module:br/presenter/formatter/PercentFormatter
- module:br/presenter/formatter/RegExpFormatter
- module:br/presenter/formatter/RoundingFormatter
- module:br/presenter/formatter/SignificantFiguresFormatter
- module:br/presenter/formatter/ThousandsFormatter
- module:br/presenter/formatter/TrimFormatter
- module:br/presenter/formatter/TruncateDecimalFormatter
- module:br/presenter/formatter/UpperCaseFormatter
Methods
-
format(vValue, mAttributes)
-
Formats a value according to some provided attributes.
Parameters:
Name Type Description vValue
Variant the value to format. May be null or undefined. mAttributes
Map A map of attributes to control the way this formatter works. May not be null or undefined. - Implementations:
- module:br/presenter/formatter/DateFormatter#format
- module:br/presenter/formatter/DecimalFormatter#format
- module:br/presenter/formatter/KeyValueFormatter#format
- module:br/presenter/formatter/LeadingZeroFormatter#format
- module:br/presenter/formatter/LocalisedAmountFormatter#format
- module:br/presenter/formatter/LowerCaseFormatter#format
- module:br/presenter/formatter/NullValueFormatter#format
- module:br/presenter/formatter/PercentFormatter#format
- module:br/presenter/formatter/RegExpFormatter#format
- module:br/presenter/formatter/RoundingFormatter#format
- module:br/presenter/formatter/SignificantFiguresFormatter#format
- module:br/presenter/formatter/ThousandsFormatter#format
- module:br/presenter/formatter/TrimFormatter#format
- module:br/presenter/formatter/TruncateDecimalFormatter#format
- module:br/presenter/formatter/UpperCaseFormatter#format
Returns:
the formatted value. May not be null or undefined.