Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 9c8d13f

Browse files
author
Brian Feister
committed
Clarify some things in the demo
1 parent 6793747 commit 9c8d13f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/demo-tagging.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
<h1>Tagging Demos</h1>
6666

6767
<h3>Simple String Tags</h3>
68+
<h4>(With Custom Tag Label)</h4>
6869
<ui-select multiple tagging tagging-label="(custom 'new' label)" ng-model="multipleDemo.colors" theme="bootstrap" ng-disabled="disabled" style="width: 300px;">
6970
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
7071
<ui-select-choices repeat="color in availableColors | filter:$select.search">
@@ -89,7 +90,8 @@ <h3>Object Tags</h3>
8990
<ui-select multiple tagging="tagTransform" ng-model="multipleDemo.selectedPeople" theme="bootstrap" ng-disabled="disabled" style="width: 800px;">
9091
<ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&gt;</ui-select-match>
9192
<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>
9395
<small>
9496
email: {{person.email}}
9597
age: <span ng-bind-html="''+person.age | highlight: $select.search"></span>

0 commit comments

Comments
 (0)