Caplin Trader 5.1.0

Class: module:ct-fx/presenter/CurrencyPairAutoCompleteProvider

module:ct-fx/presenter/CurrencyPairAutoCompleteProvider()

new module:ct-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