Caplin Trader 4.8.0

Class: module:caplin/fx/presenter/CurrencyPairAutoCompleteProvider

module:caplin/fx/presenter/CurrencyPairAutoCompleteProvider

Constructor

new module:caplin/fx/presenter/CurrencyPairAutoCompleteProvider()

Provides a set of currency pairs to be used in conjunction with a br.presenter.node.AutoCompleteSelectionField
See:

Methods

destroy()

Destroys this class and cleans up any listeners that it may be using.

getList(term, callback)

Provides the callback with a list of currency pairs that match the term. Note that the term will be used in a 'term*' pattern.
Parameters:
Name Type Description
term String The term to search.
callback function The callback to provide the array of found currency pairs.

isValidOption(option) → {boolean}

Returns True if the specified option is a valid and selectable option.
Parameters:
Name Type Description
option String The option to check.
Returns:
True if the option is selectable, false otherwise.
Type
boolean