mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 06:07:45 +00:00
Merge pull request #501 from orchestra-ts/master
Fix the TypeScript description
This commit is contained in:
commit
20ea72a491
@ -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,
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user