2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-29 00:06:36 +00:00

Fix lookup and groupBy type and merge jQuery interface.

This commit is contained in:
Gouigouix 2016-06-22 14:03:53 +02:00
parent aca7cb97e8
commit 6a7bc22b92

View File

@ -130,7 +130,7 @@ interface JQueryAutocompleteOptions {
* Callback function or lookup array for the suggestions. It may be array of strings or suggestion object literals.
* -> suggestion: An object literal with the following format: { value: 'string', data: any }.
*/
lookup?: AutocompleteSuggestion[];
lookup?: Function | AutocompleteSuggestion[];
/**
* Filter function for local lookups. By default it does partial string match (case insensitive).
@ -184,7 +184,8 @@ interface JQueryAutocompleteOptions {
/**
* Property name of the suggestion data object, by which results should be grouped.
*/
groupBy?: AutocompleteSuggestion | AutocompleteSuggestion[];
groupBy?: string;
/**
* Maximum height of the suggestions container in pixels.
* @default 300
@ -353,10 +354,6 @@ interface JQuery {
*/
autocomplete(methodName: "dispose"): AutocompleteInstance;
}
interface JQuery {
/**
* Create Autocomplete component via plugin alias
*/