.remotesearchUiSuggest()
Categories: UI
.remotesearchUiSuggest( [ options ] )
Subclass: de_epages
Inherit: (Subclass: de_epages) .widget()
Plugin: de_epages.remotesearch.ui.suggest
Description: Show suggestions for query of an input.
-
.remotesearchUiSuggest( [ options ] )
version added: 6.14.0options A map of additional options pass to the method.
The .remotesearchUiSuggest()
is only applicable to input elements from type text.
This widget displays suggests for the current value of the input field while typing.
-
Apply .remotesearchUiSuggest() to input field with id 'ProductSearchField'.
HTML:
<form action="?ViewAction=ViewRemoteSearchResults&ObjectID=12345" method="post"> <input type="hidden" name="filter"/> <input type="text" name="SearchString" id="ProductSearchField" value=""/> <button type="submit" name="SearchButton">{Search}</button> </form>
Code:
de_epages('#ProductSearchField') .remotesearchUiSuggest({ suggestUrl: '?ViewAction=ViewRemoteSearchSuggests&ObjectID=12345', searchFilter: 'input[name=filter]', suggestMax: 8, showImages: false });