Caplin Trader 5.1.0

Interface: module:br-formatting/Formatter

module:br-formatting/Formatter

Represents an object with the capability to format values.

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.

Returns:

the formatted value. May not be null or undefined.