Caplin Trader 4.7.1

Interface: module:br/presenter/node/AutoCompleteProvider

module:br/presenter/node/AutoCompleteProvider

Provides an interface for a provider that can provide auto complete suggestions, typically used with an module:br/presenter/node/AutoCopleteSelectionField.

Methods

getList(sTerm, The)

Provides the callback with a list of options that match the sTerm. Note that the sTerm will be used in a "term*" pattern.
Parameters:
Name Type Description
sTerm String The term to search.
The function callback to provide the array of found options as the first argument.

isValidOption(sOption)

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