- Implementations:
- module:br/formatting/DateFormatter
- module:br/formatting/DecimalFormatter
- module:br/formatting/KeyValueFormatter
- module:br/formatting/LeadingZeroFormatter
- module:br/formatting/LocalisedAmountFormatter
- module:br/formatting/LocalisedDateFormatter
- module:br/formatting/LowerCaseFormatter
- module:br/formatting/NullValueFormatter
- module:br/formatting/PercentFormatter
- module:br/formatting/RegExpFormatter
- module:br/formatting/RoundingFormatter
- module:br/formatting/SignificantFiguresFormatter
- module:br/formatting/ThousandsFormatter
- module:br/formatting/TrimFormatter
- module:br/formatting/TruncateDecimalFormatter
- module:br/formatting/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/formatting/DateFormatter#format
- module:br/formatting/DecimalFormatter#format
- module:br/formatting/KeyValueFormatter#format
- module:br/formatting/LeadingZeroFormatter#format
- module:br/formatting/LocalisedAmountFormatter#format
- module:br/formatting/LocalisedDateFormatter#format
- module:br/formatting/LowerCaseFormatter#format
- module:br/formatting/NullValueFormatter#format
- module:br/formatting/PercentFormatter#format
- module:br/formatting/RegExpFormatter#format
- module:br/formatting/RoundingFormatter#format
- module:br/formatting/SignificantFiguresFormatter#format
- module:br/formatting/ThousandsFormatter#format
- module:br/formatting/TrimFormatter#format
- module:br/formatting/TruncateDecimalFormatter#format
- module:br/formatting/UpperCaseFormatter#format
Returns:
the formatted value. May not be null or undefined.