mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
add customSelect
This commit is contained in:
@@ -161,6 +161,7 @@ All definitions files include a header with the author and editors, so at some p
|
||||
* [jQuery.Colorbox](http://www.jacklmoore.com/colorbox/) (by [Gidon Junge](https://github.com/gjunge))
|
||||
* [jQuery.contextMenu](http://medialize.github.com/jQuery-contextMenu/) (by [Natan Vivo](https://github.com/nvivo/))
|
||||
* [jQuery.Cookie](https://github.com/carhartl/jquery-cookie) (by [Roy Goode](https://github.com/RoyGoode))
|
||||
* [jQuery.customSelect](https://github.com/adamcoulombe/jquery.customSelect) (by [tomato360](https://github.com/tomato360))
|
||||
* [jQuery.Cycle](http://jquery.malsup.com/cycle/) (by [François Guillot](http://fguillot.developpez.com/))
|
||||
* [jQuery.Cycle2](http://jquery.malsup.com/cycle2/) (by [Donny Nadolny](https://github.com/dnadolny))
|
||||
* [jQuery.dataTables](http://www.datatables.net) (by [Armin Sander](https://github.com/pragmatrix))
|
||||
|
||||
16
jquery.customSelect/jquery.customSelect-tests.ts
Normal file
16
jquery.customSelect/jquery.customSelect-tests.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
/// <reference path="jquery.customSelect.d.ts" />
|
||||
|
||||
class CustomSelectOptions implements JQueryCustomSelectOption {
|
||||
"customClass": string;
|
||||
"mapClass": boolean;
|
||||
"mapStyle": boolean;
|
||||
}
|
||||
|
||||
var customSelectOptions = new CustomSelectOptions();
|
||||
|
||||
customSelectOptions.customClass = "myOwnClassName";
|
||||
customSelectOptions.mapClass = true;
|
||||
customSelectOptions.mapStyle = true;
|
||||
|
||||
$('select').customSelect(customSelectOptions);
|
||||
16
jquery.customSelect/jquery.customSelect.d.ts
vendored
Normal file
16
jquery.customSelect/jquery.customSelect.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// Type definitions for jquery.customSelect.js 0.5.1
|
||||
// Project: http://adam.co/lab/jquery/customselect//
|
||||
// Definitions by: adamcoulombe <https://github.com/adamcoulombe>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
///<reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
interface JQueryCustomSelectOption {
|
||||
customClass?: string;
|
||||
mapClass?: boolean;
|
||||
mapStyle?: boolean;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
customSelect(val:JQueryCustomSelectOption): JQuery;
|
||||
}
|
||||
Reference in New Issue
Block a user