mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
Changed placeholder to support IdTextPair
This commit is contained in:
1 parent
6766ed1d0f
commit
926bb90600
2 files changed
+4
-1
No files matched your search
@@ -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