2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-25 14:17:45 +00:00

Merge pull request #501 from orchestra-ts/master

Fix the TypeScript description
This commit is contained in:
Tomas Kirda 2016-06-22 09:06:07 -05:00 committed by GitHub
commit 20ea72a491
2 changed files with 4 additions and 10 deletions

View File

@ -134,10 +134,7 @@ input.autocomplete({
formatResult(suggestion: AutocompleteSuggestion, currentValue: string): string {
return currentValue;
},
groupBy: [
{ value: 'Chicago Blackhawks', data: { category: 'NHL' } },
{ value: 'Chicago Bulls', data: { category: 'NBA' } }
],
groupBy: "category",
maxHeight: 300,
width: "auto",
zIndex: 9999,

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
*/