new module:ct-fx /presenter /Currency Pair Auto Complete Provider()
Provides a set of currency pairs to be used in conjunction with a
br-presenter/node/AutoCompleteSelectionField
- See:
-
- module:ct-fx/services/CurrencyPairService
- module:ct-presenter/node/AutoCompleteSeletionField
Methods
destroy()
Destroys this class and cleans up any listeners that it may be using.
get List(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. |
is Valid Option(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