From e52fd43df154a599a73dae112ff5d22f83fb6f79 Mon Sep 17 00:00:00 2001 From: maximzasorin Date: Tue, 10 Apr 2018 10:13:57 +0300 Subject: [PATCH] fix onHint parameter in readme --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 29dcd8d..b2d9bce 100644 --- a/readme.md +++ b/readme.md @@ -46,7 +46,7 @@ $(selector).autocomplete(options); | Event setting | Function description | | :--- | :--- | | `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 | | `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.|