Merge pull request #8656 from stephenlautier/select2

Select2 - Changed placeholder to support IdTextPair
This commit is contained in:
Masahiro Wakame
2016-03-26 20:51:40 +09:00
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;