mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add Chosen.jQuery definitions and tests
This commit is contained in:
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// Type definitions for Chosen.JQuery 0.9
|
||||
// Project: http://harvesthq.github.com/chosen/
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
|
||||
/// <reference path="jquery-1.8.d.ts"/>
|
||||
|
||||
interface ChosenOptions {
|
||||
allow_single_deselect?: bool;
|
||||
disable_search_threshold?: number;
|
||||
disable_search?: bool;
|
||||
search_contains?: bool;
|
||||
single_backstroke_delete?: bool;
|
||||
max_selected_options?: number;
|
||||
placeholder_text_multiple?: string;
|
||||
placeholder_text?: string;
|
||||
placeholder_text_single?: string;
|
||||
no_results_text?: string;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
chosen(): JQuery;
|
||||
chosen(options: ChosenOptions): JQuery;
|
||||
}
|
||||
Reference in New Issue
Block a user