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

Commit

Permalink
docs(tagging): Fix tagging demo page
Browse files Browse the repository at this point in the history
Closes #1670
  • Loading branch information
patou authored and user378230 committed Jun 24, 2016
1 parent 668a0f3 commit d6e0d30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/examples/demo-tagging.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ <h1>Tagging</h1>
<p>Tagging allows the creation of new items not present in the item list</p>

<h3>Simple String Tags <small>(With Custom Tag Label &amp; Sort Enabled)</small></h3>

<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">
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
<ui-select-choices repeat="color in availableColors | filter:$select.search">
<ui-select-choices repeat="color in ctrl.availableColors | filter:$select.search">
{{color}}
</ui-select-choices>
</ui-select>
<p>Selected: {{ctrl.multipleDemo.colors}}</p>
<hr>

<h3>Simple String Tags <small>(Predictive Search Model &amp; No Labels)</small></h3>

<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">
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
<ui-select-choices repeat="color in availableColors | filter:$select.search">
<ui-select-choices repeat="color in ctrl.availableColors | filter:$select.search">
{{color}}
</ui-select-choices>
</ui-select>
Expand Down Expand Up @@ -78,7 +78,7 @@ <h3>Tagging in Single Select mode</h3>
<h3>Tagging in Single select mode, with simple strings</h3>
<ui-select tagging tagging-label="('new')" ng-model="ctrl.singleDemo.color" theme="bootstrap" style="width: 800px;" title="Choose a color">
<ui-select-match placeholder="Select color...">{{$select.selected}}</ui-select-match>
<ui-select-choices repeat="color in availableColors | filter: $select.search">
<ui-select-choices repeat="color in ctrl.availableColors | filter: $select.search">
<div ng-bind-html="color | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
Expand Down

0 comments on commit d6e0d30

Please sign in to comment.