This namespace contains autocomplete specific functions.
- Source:
Members
-
(static) SearchButtonClicked :Object
-
Needed for the handling of searches with ActiveAutoComplete = 0.
Type:
- Object
- Source:
Methods
-
(static) GetConfig(Key) → {Object}
-
gets the config value of a specific key.
Parameters:
Name Type Description KeyString The config option name. - Source:
Returns:
Config option value.- Type
- Object
-
(static) Init($Element, SourceFunction, SelectFunction, Type, Options)
-
This function initializes autocomplete on an input element.
Parameters:
Name Type Description $ElementjQueryObject The element which gets autocomplete infos. SourceFunctionCore.UI.Autocomplete~SourceFunction Defines the source data for the autocomplete. SelectFunctionCore.UI.Autocomplete~SelectFunction Is executed, if an entry is selected. TypeString of autocompletion, e.g. "CustomerSearch" etc. OptionsObject object data with autocomplete plugin options - Source:
Type Definitions
-
SelectFunction(Event, UI)
-
Parameters:
Name Type Description EventEventObject The original browser event object. UIObject The data given from the UI (e.g. UI.item is the selected autocomplete list item). - Source:
-
SourceFunction(Request, Response) → {Array}
-
Parameters:
Name Type Description RequestString The data provided by the autocomplete (e.g. the entered text). Responsefunction The function defined by the autocomplete to call with the selected data. - Source:
Returns:
Data collected for autocompletion, every array element is an object with label and value keys.- Type
- Array