mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Add classes option to jqueryui autocomplete
See http://api.jqueryui.com/autocomplete/#option-classes Signed-off-by: Grant Hutchins <ghutchins@pivotal.io>
This commit is contained in:
committed by
Grant Hutchins
parent
cb36d78e37
commit
c07a61d1aa
14
types/jqueryui/index.d.ts
vendored
14
types/jqueryui/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jQueryUI 1.11
|
||||
// Type definitions for jQueryUI 1.12
|
||||
// Project: http://jqueryui.com/
|
||||
// Definitions by: Boris Yankov <https://github.com/borisyankov>, John Reilly <https://github.com/johnnyreilly>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -51,6 +51,12 @@ declare namespace JQueryUI {
|
||||
minLength?: number;
|
||||
position?: any; // object
|
||||
source?: any; // [], string or ()
|
||||
classes?: AutocompleteClasses;
|
||||
}
|
||||
|
||||
interface AutocompleteClasses {
|
||||
"ui-autocomplete"?: string;
|
||||
"ui-autocomplete-input"?: string;
|
||||
}
|
||||
|
||||
interface AutocompleteUIParams {
|
||||
@@ -377,7 +383,7 @@ declare namespace JQueryUI {
|
||||
open?: DialogEvent;
|
||||
close?: DialogEvent;
|
||||
}
|
||||
|
||||
|
||||
interface DialogClasses {
|
||||
"ui-dialog"?: string;
|
||||
"ui-dialog-content"?: string;
|
||||
@@ -1384,8 +1390,8 @@ interface JQuery {
|
||||
* @param optionName 'autohide'
|
||||
*/
|
||||
datepicker(methodName: 'option', optionName: 'autohide'): boolean;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the endDate after initialization
|
||||
*
|
||||
|
||||
@@ -911,7 +911,12 @@ function test_autocomplete() {
|
||||
"Nothing selected, input was " + this.value);
|
||||
}
|
||||
});
|
||||
|
||||
$("#birds").autocomplete({
|
||||
classes: {
|
||||
'ui-autocomplete': 'foo',
|
||||
'ui-autocomplete-input': 'bar'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user