feathers.formatters

CurrencyFormatter

The CurrencyFormatter class formats a valid number as a currency value. It adjusts the decimal rounding and precision, the thousands separator, and the negative sign; it also adds a currency symbol. You place the currency symbol on either the left or the right side of the value with the alignSymbol property. The currency symbol can contain multiple characters, including blank spaces.

CurrencyFormatterAlignSymbol

The CurrencyFormatterAlignSymbol class defines value constants for specifying currency symbol alignment. These values are used in the CurrencyFormatter.alignSymbol property.

DateBase

The DateBase class contains the localized string information used by the feathers.formatters.DateFormatter class and the parsing function that renders the pattern. This is a helper class for the DateFormatter class that is not usually used independently.

DateFormatter

The DateFormatter class uses a format String to return a formatted date and time String from an input String or a Date object. You can create many variations easily, including international formats.

Formatter

The Formatter class is the base class for all data formatters. Any subclass of Formatter must override the format() method.

IFormatter

This interface specifies the method that a formatter object must implement to allow it to be used as the formatter property for certain UI controls.

NumberBase

The NumberBase class is a utility class that contains general number formatting capabilities, including rounding, precision, thousands formatting, and negative sign formatting. The implementation of the formatter classes use this class.

NumberBaseRoundType

The NumberBaseRoundType class defines the constant values for formatter properties that specify a type of rounding. For example, you can set the NumberFormatter.rounding property using these constants.

NumberFormatter

The NumberFormatter class formats a valid number by adjusting the decimal rounding and precision, the thousands separator, and the negative sign.

PatternInfo

PhoneFormatter

The PhoneFormatter class formats a valid number into a phone number format, including international configurations.

SwitchSymbolFormatter

The SwitchSymbolFormatter class is a utility class that you can use when creating custom formatters. This class performs a substitution by replacing placeholder characters in one String with numbers from a second String.

ZipCodeFormatter

The ZipCodeFormatter class formats a valid number into one of the following formats, based on a user-supplied formatString property.