mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-29 00:06:36 +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 {
|
formatResult(suggestion: AutocompleteSuggestion, currentValue: string): string {
|
||||||
return currentValue;
|
return currentValue;
|
||||||
},
|
},
|
||||||
groupBy: [
|
groupBy: "category",
|
||||||
{ value: 'Chicago Blackhawks', data: { category: 'NHL' } },
|
|
||||||
{ value: 'Chicago Bulls', data: { category: 'NBA' } }
|
|
||||||
],
|
|
||||||
maxHeight: 300,
|
maxHeight: 300,
|
||||||
width: "auto",
|
width: "auto",
|
||||||
zIndex: 9999,
|
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.
|
* 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 }.
|
* -> 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).
|
* 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.
|
* 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.
|
* Maximum height of the suggestions container in pixels.
|
||||||
* @default 300
|
* @default 300
|
||||||
@ -353,10 +354,6 @@ interface JQuery {
|
|||||||
*/
|
*/
|
||||||
autocomplete(methodName: "dispose"): AutocompleteInstance;
|
autocomplete(methodName: "dispose"): AutocompleteInstance;
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
interface JQuery {
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create Autocomplete component via plugin alias
|
* Create Autocomplete component via plugin alias
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user