add customSelect

This commit is contained in:
tomato360
2014-09-05 17:13:53 +09:00
parent 029781c46f
commit db5ca82c65
3 changed files with 33 additions and 0 deletions

View 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);

View 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;
}