Download the PHP package gozoro/jquery-autocompleter without Composer
On this page you can find all versions of the php package gozoro/jquery-autocompleter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gozoro/jquery-autocompleter
More information about gozoro/jquery-autocompleter
Files in gozoro/jquery-autocompleter
Package jquery-autocompleter
Short Description A jQuery plugin autocomplete.
License MIT
Homepage https://github.com/gozoro/jquery-autocompleter
Informations about the package jquery-autocompleter
jquery-autocompleter
A jQuery plugin autocomplete
Installation
Usage
Using an variant array
![]() |
---|
Using AJAX
Options
maxResults
Maximum number of suggestions (0 - no limits).
Default: 0.
minChars
Minimum number of characters for the suggestions.
Default: 1.
delay
Keyboard input delay.
Default: 500 ms.
ajaxData
The function must return ajax-request data. Here you can get additional parameters for the ajax-request.
Default:
value
- input search value
template
The function must return the item value used to compare with the input value when filtering. The result of the function determines the match of the input string.
Default:
item
- item value of variant list.index
- item key of variant list.
value
The function must return value for the request (when item is selected). This option enables the use of hidden input. You can use this option when you want to use an identifier instead of a text string from input.
Default: returned value of function from template
option.
Example:
item
- item value of variant list.index
- item key of variant list.
hiddenDefaultValue
Default value for the hidden input.
Default: "".
row
The function must return a value used for display a suggestions. You can change the format of the output suggestion string.
Default:
item
- item value of variant list.index
- item key of variant list.
Example:
filter
Function must return a boolean value.
When a variant must be included in the list of suggestions this function must return true
instead of false
.
Default:
item
- item value of variant list.index
- item key of variant list.inputValue
- current input value.template
- value of optiontemplate
.
Events
autocompleter:select
The event is triggered when an item from the list of items is selected.
autocompleter:unselect
The event is triggered when an item from the list of items is unselected.
Example:
![]() |
---|