LocalisedAmountFormatter
Formats a number to a configuarble number of decimal placess
according to current locale of browser. It automatically detects the current locale of the the
browser and uses that to format numbers. For examplecaplin.element.formatter.LocalisedAmountFormatter.format(1234567890, {})
caplin.element.formatter.LocalisedAmountFormatter.format(1234567890, {dp: 4})
Attributes | Name and Description |
---|---|
|
caplin.element.formatter.LocalisedAmountFormatter()
|
Attributes | Name and Description |
---|---|
|
String
format(Variant vValue, Map mAttributes)
Formats a number into an localised string representation. |
►
caplin.element.formatter.LocalisedAmountFormatter()
►
String
format(Variant vValue, Map mAttributes)
Formats a number into an localised string representation.
Variant | vValue | the numeric amount (Number type). if a string is passed it is returned unchanged. |
Map | mAttributes | a list of attributes, as specified here and in. dp: number of decinal places to be displayed. Rounding occurs according to standard javascript behaviour. |