Caplin Trader 4.0.1

Interface: module:caplin/core/Formatter

module:caplin/core/Formatter

Represents an object with the capability to format values.

Methods

format(vValue, mAttributes) → {String}

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.
Returns:
the formatted value. May not be null or undefined.
Type
String