mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-12-23 03:18:55 +00:00
Add plugin alias in jquery.autocomplete.d.ts
Add plugin alias "devbridgeAutocomplete" in TypeScript definition file jquery.autocomplete.d.ts
This commit is contained in:
parent
95a329d80d
commit
5c0cce6ad1
@ -301,8 +301,7 @@ interface JQuery {
|
|||||||
/**
|
/**
|
||||||
* Create Autocomplete component
|
* Create Autocomplete component
|
||||||
*/
|
*/
|
||||||
autocomplete(): AutocompleteInstance;
|
autocomplete(options?: JQueryAutocompleteOptions): AutocompleteInstance;
|
||||||
autocomplete(options: JQueryAutocompleteOptions): AutocompleteInstance;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trigger non-specialized signature method
|
* Trigger non-specialized signature method
|
||||||
@ -355,3 +354,62 @@ interface JQuery {
|
|||||||
autocomplete(methodName: "dispose"): AutocompleteInstance;
|
autocomplete(methodName: "dispose"): AutocompleteInstance;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface JQuery {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create Autocomplete component via plugin alias
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(options?: JQueryAutocompleteOptions): AutocompleteInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trigger non-specialized signature method
|
||||||
|
* @param methodName
|
||||||
|
* @param arg
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(methodName: string, ...arg: any[]): any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* You may update any option at any time. Options are listed above.
|
||||||
|
* @param methodName The name of the method
|
||||||
|
* @param options
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(methodName: "setOptions", options: JQueryAutocompleteOptions): AutocompleteInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears suggestion cache and current suggestions suggestions.
|
||||||
|
* @param methodName The name of the method
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(methodName: "clear"): AutocompleteInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears suggestion cache.
|
||||||
|
* @param methodName The name of the method
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(methodName: "clearCache"): AutocompleteInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deactivate autocomplete.
|
||||||
|
* @param methodName The name of the method
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(methodName: "disable"): AutocompleteInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Activates autocomplete if it was deactivated before.
|
||||||
|
* @param methodName The name of the method
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(methodName: "enable"): AutocompleteInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hides suggestions.
|
||||||
|
* @param methodName The name of the method
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(methodName: "hide"): AutocompleteInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Destroys autocomplete instance. All events are detached and suggestion containers removed.
|
||||||
|
* @param methodName The name of the method
|
||||||
|
*/
|
||||||
|
devbridgeAutocomplete(methodName: "dispose"): AutocompleteInstance;
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user