Changed placeholder to support IdTextPair

This commit is contained in:
Stephen Lautier
2016-03-20 18:47:18 +01:00
parent 6766ed1d0f
commit 926bb90600
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
});
+1 -1
View File
@@ -42,7 +42,7 @@ interface Select2Options {
minimumInputLength?: number;
minimumResultsForSearch?: number;
maximumSelectionSize?: number;
placeholder?: string;
placeholder?: string | IdTextPair;
separator?: string;
allowClear?: boolean;
multiple?: boolean;