Caplin Trader 5.1.0

Class: module:ct-element/formatter/CountdownFormatter

module:ct-element/formatter/CountdownFormatter()

new module:ct-element/formatter/CountdownFormatter()

Appends an 's' to the passed in numeric parameter value. It formats both positive and negative values.

Implements:

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.

Inherited From:
Implements:
Returns:

the formatted value. May not be null or undefined.