This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 65
65
< h1 > Tagging Demos</ h1 >
66
66
67
67
< h3 > Simple String Tags</ h3 >
68
+ < h4 > (With Custom Tag Label)</ h4 >
68
69
< ui-select multiple tagging tagging-label ="(custom 'new' label) " ng-model ="multipleDemo.colors " theme ="bootstrap " ng-disabled ="disabled " style ="width: 300px; ">
69
70
< ui-select-match placeholder ="Select colors... "> {{$item}}</ ui-select-match >
70
71
< ui-select-choices repeat ="color in availableColors | filter:$select.search ">
@@ -89,7 +90,8 @@ <h3>Object Tags</h3>
89
90
< ui-select multiple tagging ="tagTransform " ng-model ="multipleDemo.selectedPeople " theme ="bootstrap " ng-disabled ="disabled " style ="width: 800px; ">
90
91
< ui-select-match placeholder ="Select person... "> {{$item.name}} <{{$item.email}}></ ui-select-match >
91
92
< ui-select-choices repeat ="person in people | propsFilter: {name: $select.search, age: $select.search} ">
92
- < div ng-bind-html ="person.name | highlight: $select.search "> </ div >
93
+ < div ng-if ="person.isTag " ng-bind-html ="person.name +' <small>(new)</small>'| highlight: $select.search "> </ div >
94
+ < div ng-if ="!person.isTag " ng-bind-html ="person.name + person.isTag| highlight: $select.search "> </ div >
93
95
< small >
94
96
email: {{person.email}}
95
97
age: < span ng-bind-html ="''+person.age | highlight: $select.search "> </ span >
You can’t perform that action at this time.
0 commit comments