mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-09 14:50:57 +00:00
Update documentation, fixes #557
This commit is contained in:
parent
72b275819a
commit
a279fe90b3
@ -30,7 +30,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified.
|
||||
* `noCache`: Boolean value indicating whether to cache suggestion results. Default `false`.
|
||||
* `delimiter`: String or RegExp, that splits input value and takes last part to as query for suggestions.
|
||||
Useful when for example you need to fill list of comma separated values.
|
||||
* `onSearchStart`: `function (query) {}` called before Ajax request. `this` is bound to input element.
|
||||
* `onSearchStart`: `function (params) {}` called before Ajax request. `this` is bound to input element.
|
||||
* `onSearchComplete`: `function (query, suggestions) {}` called after Ajax response is processed. `this` is bound to input element. `suggestions` is an array containing the results.
|
||||
* `onSearchError`: `function (query, jqXHR, textStatus, errorThrown) {}` called if Ajax request fails. `this` is bound to input element.
|
||||
* `transformResult`: `function(response, originalQuery) {}` called after the result of the query is ready. Converts the result into response.suggestions format.
|
||||
|
Loading…
Reference in New Issue
Block a user