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.
Source:

isValidOption(sOption)

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