This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 63
63
64
64
< button class ="btn btn-default btn-xs " ng-click ="clear() "> Clear ng-model</ button >
65
65
66
+ < h3 > Bootstrap theme</ h3 >
67
+ < p > Selected: {{person.selected}}</ p >
68
+ < ui-select ng-model ="person.selected " theme ="bootstrap " search-enabled ="searchEnabled " ng-disabled ="disabled " style ="min-width: 300px; ">
69
+ < ui-select-match placeholder ="Select a person in the list or search his name/age... "> {{$select.selected.name}}</ ui-select-match >
70
+ < ui-select-choices repeat ="person in people | propsFilter: {name: $select.search, age: $select.search} ">
71
+ < div ng-bind-html ="person.name | highlight: $select.search "> </ div >
72
+ < small >
73
+ email: {{person.email}}
74
+ age: < span ng-bind-html ="''+person.age | highlight: $select.search "> </ span >
75
+ </ small >
76
+ </ ui-select-choices >
77
+ </ ui-select >
78
+
66
79
< h3 > Select2 theme</ h3 >
67
80
< p > Selected: {{person.selected}}</ p >
68
81
< ui-select ng-model ="person.selected " theme ="select2 " search-enabled ="searchEnabled " ng-disabled ="disabled " style ="min-width: 300px; ">
Original file line number Diff line number Diff line change 3
3
ng-disabled ="$select.disabled "
4
4
ng-class ="{'btn-default-focus':$select.focus} ";
5
5
ng-click ="$select.activate() ">
6
- < span ng-show ="$select.isEmpty() " class ="text-muted "> {{$select.placeholder}}</ span >
6
+ < span ng-show ="$select.searchEnabled && $select. isEmpty() " class ="text-muted "> {{$select.placeholder}}</ span >
7
7
< span ng-hide ="$select.isEmpty() " ng-transclude > </ span >
8
8
< span class ="caret "> </ span >
9
9
</ button >
Original file line number Diff line number Diff line change 4
4
class ="form-control ui-select-search "
5
5
placeholder ="{{$select.placeholder}} "
6
6
ng-model ="$select.search "
7
- ng-show ="$select.open ">
7
+ ng-show ="$select.searchEnabled && $select. open ">
8
8
< div class ="ui-select-choices "> </ div >
9
9
</ div >
You can’t perform that action at this time.
0 commit comments