mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge branch 'master' of github.com:styfle/DefinitelyTyped into styfle-master
Conflicts: select2/select2.d.ts
This commit is contained in:
Vendored
+9
-9
@@ -111,39 +111,39 @@ interface JQuery {
|
||||
/**
|
||||
* Reverts changes to DOM done by Select2. Any selection done via Select2 will be preserved.
|
||||
*/
|
||||
select2(method: 'destroy'): void;
|
||||
select2(method: 'destroy'): JQuery;
|
||||
/**
|
||||
* Opens the dropdown
|
||||
*/
|
||||
select2(method: 'open'): void;
|
||||
select2(method: 'open'): JQuery;
|
||||
/**
|
||||
* Closes the dropdown
|
||||
*/
|
||||
select2(method: 'close'): void;
|
||||
select2(method: 'close'): JQuery;
|
||||
/**
|
||||
* Enables or disables Select2 and its underlying form component
|
||||
* @param value True if it should be enabled false if it should be disabled
|
||||
*/
|
||||
select2(method: 'enable', value: boolean): void;
|
||||
select2(method: 'enable', value: boolean): JQuery;
|
||||
/**
|
||||
* Toggles readonly mode on Select2 and its underlying form component
|
||||
* @param value True if it should be readonly false if it should be read write
|
||||
*/
|
||||
select2(method: 'readonly', value: boolean): void;
|
||||
select2(method: 'readonly', value: boolean): JQuery;
|
||||
/**
|
||||
* Retrieves the main container element that wraps all of DOM added by Select2
|
||||
*/
|
||||
select2(method: 'container'): HTMLElement;
|
||||
select2(method: 'container'): JQuery;
|
||||
/**
|
||||
* Notifies Select2 that a drag and drop sorting operation has started
|
||||
*/
|
||||
select2(method: 'onSortStart'): void;
|
||||
select2(method: 'onSortStart'): JQuery;
|
||||
/**
|
||||
* Notifies Select2 that a drag and drop sorting operation has finished
|
||||
*/
|
||||
select2(method: 'onSortEnd'): void;
|
||||
select2(method: 'onSortEnd'): JQuery;
|
||||
|
||||
select2(method: string): any;
|
||||
select2(method: string, value: any, trigger?: boolean): any;
|
||||
select2(options: Select2Options): JQuery;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user