mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Changed placeholder to support IdTextPair
This commit is contained in:
@@ -9,6 +9,9 @@ $("#e2").select2({
|
||||
$("#e2_2").select2({
|
||||
placeholder: "Select a State"
|
||||
});
|
||||
$("#e2_3").select2({
|
||||
placeholder: { id: "1", text: "Select options" }
|
||||
});
|
||||
$("#e3").select2({
|
||||
minimumInputLength: 2
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -42,7 +42,7 @@ interface Select2Options {
|
||||
minimumInputLength?: number;
|
||||
minimumResultsForSearch?: number;
|
||||
maximumSelectionSize?: number;
|
||||
placeholder?: string;
|
||||
placeholder?: string | IdTextPair;
|
||||
separator?: string;
|
||||
allowClear?: boolean;
|
||||
multiple?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user