@@ -7,21 +7,21 @@ <h1>Tagging</h1>
7
7
< p > Tagging allows the creation of new items not present in the item list</ p >
8
8
9
9
< h3 > Simple String Tags < small > (With Custom Tag Label & Sort Enabled)</ small > </ h3 >
10
-
10
+
11
11
< ui-select multiple tagging tagging-label ="(custom 'new' label) " ng-model ="ctrl.multipleDemo.colors " theme ="bootstrap " sortable ="true " ng-disabled ="ctrl.disabled " style ="width: 300px; " title ="Choose a color ">
12
12
< ui-select-match placeholder ="Select colors... "> {{$item}}</ ui-select-match >
13
- < ui-select-choices repeat ="color in availableColors | filter:$select.search ">
13
+ < ui-select-choices repeat ="color in ctrl. availableColors | filter:$select.search ">
14
14
{{color}}
15
15
</ ui-select-choices >
16
16
</ ui-select >
17
17
< p > Selected: {{ctrl.multipleDemo.colors}}</ p >
18
18
< hr >
19
19
20
20
< h3 > Simple String Tags < small > (Predictive Search Model & No Labels)</ small > </ h3 >
21
-
21
+
22
22
< ui-select multiple tagging tagging-label ="false " ng-model ="ctrl.multipleDemo.colors2 " theme ="bootstrap " ng-disabled ="ctrl.disabled " style ="width: 300px; " title ="Choose a color ">
23
23
< ui-select-match placeholder ="Select colors... "> {{$item}}</ ui-select-match >
24
- < ui-select-choices repeat ="color in availableColors | filter:$select.search ">
24
+ < ui-select-choices repeat ="color in ctrl. availableColors | filter:$select.search ">
25
25
{{color}}
26
26
</ ui-select-choices >
27
27
</ ui-select >
@@ -78,7 +78,7 @@ <h3>Tagging in Single Select mode</h3>
78
78
< h3 > Tagging in Single select mode, with simple strings</ h3 >
79
79
< ui-select tagging tagging-label ="('new') " ng-model ="ctrl.singleDemo.color " theme ="bootstrap " style ="width: 800px; " title ="Choose a color ">
80
80
< ui-select-match placeholder ="Select color... "> {{$select.selected}}</ ui-select-match >
81
- < ui-select-choices repeat ="color in availableColors | filter: $select.search ">
81
+ < ui-select-choices repeat ="color in ctrl. availableColors | filter: $select.search ">
82
82
< div ng-bind-html ="color | highlight: $select.search "> </ div >
83
83
</ ui-select-choices >
84
84
</ ui-select >
0 commit comments