mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 22:27:39 +00:00
Merge pull request #705 from maximzasorin/master
Update onHint parameter name in readme
This commit is contained in:
commit
3927f7960f
@ -46,7 +46,7 @@ $(selector).autocomplete(options);
|
|||||||
| Event setting | Function description |
|
| Event setting | Function description |
|
||||||
| :--- | :--- |
|
| :--- | :--- |
|
||||||
| `onSearchStart` | `function (params) {}` called before Ajax request. `this` is bound to input element |
|
| `onSearchStart` | `function (params) {}` called before Ajax request. `this` is bound to input element |
|
||||||
| `onHint` | `function (container) {}` used to change input value to first suggestion automatically |
|
| `onHint` | `function (hint) {}` used to change input value to first suggestion automatically |
|
||||||
| `onSearchComplete` | `function (query, suggestions) {}` called after Ajax response is processed. `this` is bound to input element. `suggestions` is an array containing the results |
|
| `onSearchComplete` | `function (query, suggestions) {}` called after Ajax response is processed. `this` is bound to input element. `suggestions` is an array containing the results |
|
||||||
| `transformResult` | `function(response, originalQuery) {}` called after the result of the query is ready. Converts the result into response.suggestions format |
|
| `transformResult` | `function(response, originalQuery) {}` called after the result of the query is ready. Converts the result into response.suggestions format |
|
||||||
| `onSelect` | `function (suggestion) {}` Callback function invoked when user selects suggestion from the list. `this` inside callback refers to input HtmlElement.|
|
| `onSelect` | `function (suggestion) {}` Callback function invoked when user selects suggestion from the list. `this` inside callback refers to input HtmlElement.|
|
||||||
|
Loading…
Reference in New Issue
Block a user