File tree 3 files changed +32
-3
lines changed 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,18 @@ <h3>Bootstrap theme</h3>
23
23
</ small >
24
24
</ ui-select-choices >
25
25
</ ui-select >
26
+ < hr />
27
+ < p > Number Selected: {{ctrl.multipleDemo.selectedPeople.length}}</ p >
28
+ < ui-select multiple ng-model ="ctrl.multipleDemo.selectedPeople " theme ="bootstrap " search-enabled ="ctrl.searchEnabled " ng-disabled ="ctrl.disabled " style ="min-width: 300px; " title ="Choose a person ">
29
+ < ui-select-match placeholder ="Select person... "> {{$item.name}} <{{$item.email}}></ ui-select-match >
30
+ < ui-select-choices repeat ="person in ctrl.people | propsFilter: {name: $select.search, age: $select.search} ">
31
+ < div ng-bind-html ="person.name | highlight: $select.search "> </ div >
32
+ < small >
33
+ email: {{person.email}}
34
+ age: < span ng-bind-html ="''+person.age | highlight: $select.search "> </ span >
35
+ </ small >
36
+ </ ui-select-choices >
37
+ </ ui-select >
26
38
27
39
< h3 > Select2 theme</ h3 >
28
40
< p > Selected: {{ctrl.person.selected}}</ p >
@@ -36,7 +48,18 @@ <h3>Select2 theme</h3>
36
48
</ small >
37
49
</ ui-select-choices >
38
50
</ ui-select >
39
-
51
+ < hr />
52
+ < p > Number Selected: {{ctrl.multipleDemo.selectedPeople.length}}</ p >
53
+ < ui-select multiple ng-model ="ctrl.multipleDemo.selectedPeople " theme ="select2 " search-enabled ="ctrl.searchEnabled " ng-disabled ="ctrl.disabled " style ="min-width: 300px; ">
54
+ < ui-select-match placeholder ="Select person... "> {{$item.name}} <{{$item.email}}></ ui-select-match >
55
+ < ui-select-choices repeat ="person in ctrl.people | propsFilter: {name: $select.search, age: $select.search} ">
56
+ < div ng-bind-html ="person.name | highlight: $select.search "> </ div >
57
+ < small >
58
+ email: {{person.email}}
59
+ age: < span ng-bind-html ="''+person.age | highlight: $select.search "> </ span >
60
+ </ small >
61
+ </ ui-select-choices >
62
+ </ ui-select >
40
63
< h3 > Selectize theme</ h3 >
41
64
< p > Selected: {{ctrl.country.selected}}</ p >
42
65
< ui-select ng-model ="ctrl.country.selected " theme ="selectize " search-enabled ="ctrl.searchEnabled " ng-disabled ="ctrl.disabled " style ="width: 300px; ">
Original file line number Diff line number Diff line change @@ -112,13 +112,14 @@ body > .select2-container.open {
112
112
margin-top : -2px ; /* FIXME hardcoded value :-/ */
113
113
}
114
114
115
- .ui-select-container [theme = "selectize" ] .ui-select-search-hidden {
115
+ .ui-select-container [theme = "selectize" ] input .ui-select-search-hidden {
116
116
opacity : 0 ;
117
117
height : 0 ;
118
118
min-height : 0 ;
119
119
padding : 0 ;
120
120
margin : 0 ;
121
121
border : 0 ;
122
+ width : 0 ;
122
123
}
123
124
124
125
/* Bootstrap theme */
Original file line number Diff line number Diff line change 1
- < div ng-hide ="$select.searchEnabled && ($select.open || $select.isEmpty()) " class ="ui-select-match " ng-transclude > </ div >
1
+ < div ng-show ="(!$select.isEmpty() && !$select.open) || !$select.searchEnabled " class ="ui-select-match ">
2
+ < span ng-hide ="$select.searchEnabled || (!$select.isEmpty() && !$select.open) " class ="ui-select-placeholder text-muted "> {{$select.placeholder}}</ span >
3
+ < span ng-hide ="$select.isEmpty() || $select.open " ng-transclude > </ span >
4
+ </ div >
5
+
6
+
You can’t perform that action at this time.
0 commit comments