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

Commit 7c4d141

Browse files
author
Andrew Eisenberg
committed
Ensure examples use ui-select title attribute
1 parent c00b657 commit 7c4d141

10 files changed

+27
-26
lines changed

Diff for: examples/demo-bind-to-single-property-async.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<h3>Select2 theme</h3>
6666
<h4>Single property binding with async data</h4>
6767
<p>Selected: {{personAsync.selected}}</p>
68-
<ui-select ng-model="personAsync.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;">
68+
<ui-select ng-model="personAsync.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;" title="Single property binding with async data">
6969
<ui-select-match placeholder="Select a person in the list or search his name/age...">{{$select.selected.name || $select.selected}}</ui-select-match>
7070
<ui-select-choices repeat="person.email as person in peopleAsync | propsFilter: {name: $select.search, age: $select.search}">
7171
<div ng-bind-html="person.name | highlight: $select.search"></div>

Diff for: examples/demo-bind-to-single-property.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
<h3>Select2 theme</h3>
6666
<p>Selected: {{person.selected}}</p>
67-
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;">
67+
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;" title="Choose a person">
6868
<ui-select-match placeholder="Select a person in the list or search his name/age...">{{$select.selected.name}}</ui-select-match>
6969
<ui-select-choices repeat="person.email as person in people | propsFilter: {name: $select.search, age: $select.search}">
7070
<div ng-bind-html="person.name | highlight: $select.search"></div>

Diff for: examples/demo-disable-search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
<h3>Bootstrap theme</h3>
6767
<p>Selected: {{person.selected}}</p>
68-
<ui-select ng-model="person.selected" theme="bootstrap" search-enabled="searchEnabled" ng-disabled="disabled" style="min-width: 300px;">
68+
<ui-select ng-model="person.selected" theme="bootstrap" search-enabled="searchEnabled" ng-disabled="disabled" style="min-width: 300px;" title="Choose a person">
6969
<ui-select-match placeholder="Select a person in the list or search his name/age...">{{$select.selected.name}}</ui-select-match>
7070
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
7171
<div ng-bind-html="person.name | highlight: $select.search"></div>

Diff for: examples/demo-event-on-select.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
<h3>Select2 theme</h3>
6666
<p>Selected: {{person.selected}}</p>
67-
<ui-select ng-model="person.selected" theme="select2" on-select="someFunction($item, $model)" ng-disabled="disabled" style="min-width: 300px;">
67+
<ui-select ng-model="person.selected" theme="select2" on-select="someFunction($item, $model)" ng-disabled="disabled" style="min-width: 300px;" title="Choose a person">
6868
<ui-select-match placeholder="Select a person in the list or search his name/age...">{{$select.selected.name}}</ui-select-match>
6969
<ui-select-choices repeat="person.email as person in people | propsFilter: {name: $select.search, age: $select.search}">
7070
<div ng-bind-html="person.name | highlight: $select.search"></div>
@@ -79,7 +79,7 @@ <h3>Select2 theme</h3>
7979
<br>
8080
<br>
8181
<h1>Event Result</h1>
82-
Called <b>{{counter+0}}</b> times selected
82+
Called <strong>{{counter+0}}</strong> times selected
8383
<div>item = {{eventResult.item}}</div>
8484
<div>model = {{eventResult.model}}</div>
8585
</body>

Diff for: examples/demo-groupby.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h3>Select2 theme</h3>
6666
<p>Selected: {{person.selected}}</p>
6767

6868
<h2>Grouped using a string (group-by="'country'")</h2>
69-
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;">
69+
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;" title="Choose a person">
7070
<ui-select-match placeholder="Select a person in the list or search his name/age...">{{$select.selected.name}}</ui-select-match>
7171
<ui-select-choices group-by="'country'" repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
7272
<div ng-bind-html="person.name | highlight: $select.search"></div>
@@ -78,7 +78,7 @@ <h2>Grouped using a string (group-by="'country'")</h2>
7878
</ui-select>
7979

8080
<h2>Grouped using a function (group-by="someGroupFn")</h2>
81-
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;">
81+
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;" title="Choose a person">
8282
<ui-select-match placeholder="Select a person in the list or search his name/age...">{{$select.selected.name}}</ui-select-match>
8383
<ui-select-choices group-by="someGroupFn" repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
8484
<div ng-bind-html="person.name | highlight: $select.search"></div>
@@ -90,7 +90,7 @@ <h2>Grouped using a function (group-by="someGroupFn")</h2>
9090
</ui-select>
9191

9292
<h2>Simple (no groupBy)</h2>
93-
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;">
93+
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;" title="Choose a person">
9494
<ui-select-match placeholder="Select a person in the list or search his name/age...">{{$select.selected.name}}</ui-select-match>
9595
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
9696
<div ng-bind-html="person.name | highlight: $select.search"></div>

Diff for: examples/demo-multi-select.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h3>Multi select</h3>
113113
<h1>Multi Selection Demos</h1>
114114

115115
<h3>Array of strings</h3>
116-
<ui-select multiple ng-model="multipleDemo.colors" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 300px;">
116+
<ui-select multiple ng-model="multipleDemo.colors" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 300px;" title="Choose a color">
117117
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
118118
<ui-select-choices repeat="color in availableColors | filter:$select.search">
119119
{{color}}
@@ -136,7 +136,7 @@ <h3>Array of objects</h3>
136136

137137
<hr>
138138
<h3>Deselect callback with single property binding</h3>
139-
<ui-select multiple ng-model="multipleDemo.deSelectedPeople" on-remove="removed($item, $model)" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 800px;">
139+
<ui-select multiple ng-model="multipleDemo.deSelectedPeople" on-remove="removed($item, $model)" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 800px;" title="Choose a person">
140140
<ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&gt;</ui-select-match>
141141
<ui-select-choices repeat="person.email as person in people | propsFilter: {name: $select.search, age: $select.search}">
142142
<div ng-bind-html="person.name | highlight: $select.search"></div>
@@ -151,7 +151,7 @@ <h3>Deselect callback with single property binding</h3>
151151

152152
<hr>
153153
<h3>Array of objects with single property binding</h3>
154-
<ui-select multiple ng-model="multipleDemo.selectedPeopleSimple" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 800px;">
154+
<ui-select multiple ng-model="multipleDemo.selectedPeopleSimple" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 800px;" title="Choose a person">
155155
<ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&gt;</ui-select-match>
156156
<ui-select-choices repeat="person.email as person in people | propsFilter: {name: $select.search, age: $select.search}">
157157
<div ng-bind-html="person.name | highlight: $select.search"></div>
@@ -165,7 +165,7 @@ <h3>Array of objects with single property binding</h3>
165165

166166
<hr>
167167
<h3>Array of objects (with groupBy)</h3>
168-
<ui-select multiple ng-model="multipleDemo.selectedPeopleWithGroupBy" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 800px;">
168+
<ui-select multiple ng-model="multipleDemo.selectedPeopleWithGroupBy" theme="bootstrap" ng-disabled="disabled" close-on-select="false" style="width: 800px;" title="Choose a person">
169169
<ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&gt;</ui-select-match>
170170
<ui-select-choices group-by="someGroupFn" repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
171171
<div ng-bind-html="person.name | highlight: $select.search"></div>

Diff for: examples/demo-tagging.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>Tagging Demos</h1>
6666

6767
<h3>Simple String Tags</h3>
6868
<h4>(With Custom Tag Label)</h4>
69-
<ui-select multiple tagging tagging-label="(custom 'new' label)" ng-model="multipleDemo.colors" theme="bootstrap" ng-disabled="disabled" style="width: 300px;">
69+
<ui-select multiple tagging tagging-label="(custom 'new' label)" ng-model="multipleDemo.colors" theme="bootstrap" ng-disabled="disabled" style="width: 300px;" title="Choose a color">
7070
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
7171
<ui-select-choices repeat="color in availableColors | filter:$select.search">
7272
{{color}}
@@ -77,7 +77,7 @@ <h4>(With Custom Tag Label)</h4>
7777

7878
<h3>Simple String Tags </h3>
7979
<h4>(Predictive Search Model / No Labels)</h4>
80-
<ui-select multiple tagging tagging-label="false" ng-model="multipleDemo.colors2" theme="bootstrap" ng-disabled="disabled" style="width: 300px;">
80+
<ui-select multiple tagging tagging-label="false" ng-model="multipleDemo.colors2" theme="bootstrap" ng-disabled="disabled" style="width: 300px;" title="Choose a color">
8181
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
8282
<ui-select-choices repeat="color in availableColors | filter:$select.search">
8383
{{color}}
@@ -87,7 +87,7 @@ <h4>(Predictive Search Model / No Labels)</h4>
8787
<hr>
8888

8989
<h3>Object Tags</h3>
90-
<ui-select multiple tagging="tagTransform" ng-model="multipleDemo.selectedPeople" theme="bootstrap" ng-disabled="disabled" style="width: 800px;">
90+
<ui-select multiple tagging="tagTransform" ng-model="multipleDemo.selectedPeople" theme="bootstrap" ng-disabled="disabled" style="width: 800px;" title="Choose a person">
9191
<ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&gt;</ui-select-match>
9292
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
9393
<div ng-if="person.isTag" ng-bind-html="person.name +' <small>(new)</small>'| highlight: $select.search"></div>
@@ -103,7 +103,7 @@ <h3>Object Tags</h3>
103103

104104
<h3>Object Tags with Tokenization (Space, Forward Slash, Comma)</h3>
105105
<strong>Note that the SPACE character can't be used literally, use the keyword SPACE</strong>
106-
<ui-select multiple tagging="tagTransform" tagging-tokens="SPACE|,|/" ng-model="multipleDemo.selectedPeople2" theme="bootstrap" ng-disabled="disabled" style="width: 800px;">
106+
<ui-select multiple tagging="tagTransform" tagging-tokens="SPACE|,|/" ng-model="multipleDemo.selectedPeople2" theme="bootstrap" ng-disabled="disabled" style="width: 800px;" title="Choose a person">
107107
<ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&gt;</ui-select-match>
108108
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
109109
<div ng-if="person.isTag" ng-bind-html="person.name + ' ' + $select.taggingLabel | highlight: $select.search"></div>

Diff for: examples/demo.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ <h3>Bootstrap theme</h3>
6868
theme="bootstrap"
6969
ng-disabled="disabled"
7070
reset-search-input="false"
71-
style="width: 300px;">
71+
style="width: 300px;"
72+
title="Choose an address">
7273
<ui-select-match placeholder="Enter an address...">{{$select.selected.formatted_address}}</ui-select-match>
7374
<ui-select-choices repeat="address in addresses track by $index"
7475
refresh="refreshAddresses($select.search)"
@@ -79,7 +80,7 @@ <h3>Bootstrap theme</h3>
7980

8081
<h3>Select2 theme</h3>
8182
<p>Selected: {{person.selected}}</p>
82-
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;">
83+
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;" title="Choose a person">
8384
<ui-select-match placeholder="Select a person in the list or search his name/age...">{{$select.selected.name}}</ui-select-match>
8485
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
8586
<div ng-bind-html="person.name | highlight: $select.search"></div>
@@ -92,7 +93,7 @@ <h3>Select2 theme</h3>
9293

9394
<h3>Selectize theme</h3>
9495
<p>Selected: {{country.selected}}</p>
95-
<ui-select ng-model="country.selected" theme="selectize" ng-disabled="disabled" style="width: 300px;">
96+
<ui-select ng-model="country.selected" theme="selectize" ng-disabled="disabled" style="width: 300px;" title="Choose a country">
9697
<ui-select-match placeholder="Select or search a country in the list...">{{$select.selected.name}}</ui-select-match>
9798
<ui-select-choices repeat="country in countries | filter: $select.search">
9899
<span ng-bind-html="country.name | highlight: $select.search"></span>

Diff for: examples/select2-bootstrap3.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<label class="col-sm-3 control-label">Default</label>
5454
<div class="col-sm-6">
5555

56-
<ui-select ng-model="person.selected" theme="select2" class="form-control">
56+
<ui-select ng-model="person.selected" theme="select2" class="form-control" title="Choose a person">
5757
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
5858
<ui-select-choices repeat="item in people | filter: $select.search">
5959
<div ng-bind-html="item.name | highlight: $select.search"></div>
@@ -68,7 +68,7 @@
6868
<label class="col-sm-3 control-label">Grouped</label>
6969
<div class="col-sm-6">
7070

71-
<ui-select ng-model="person.selected" theme="select2" class="form-control">
71+
<ui-select ng-model="person.selected" theme="select2" class="form-control" title="Choose a person">
7272
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
7373
<ui-select-choices group-by="'group'" repeat="item in people | filter: $select.search">
7474
<span ng-bind-html="item.name | highlight: $select.search"></span>
@@ -84,7 +84,7 @@
8484
<div class="col-sm-6">
8585
<div class="input-group select2-bootstrap-append">
8686

87-
<ui-select ng-model="person.selected" theme="select2" class="form-control">
87+
<ui-select ng-model="person.selected" theme="select2" class="form-control" title="Choose a person">
8888
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
8989
<ui-select-choices repeat="item in people | filter: $select.search">
9090
<span ng-bind-html="item.name | highlight: $select.search"></span>
@@ -106,7 +106,7 @@
106106
<label class="col-sm-3 control-label">Disabled</label>
107107
<div class="col-sm-6">
108108

109-
<ui-select ng-model="person.selected" theme="select2" class="form-control" ng-disabled="true">
109+
<ui-select ng-model="person.selected" theme="select2" class="form-control" ng-disabled="true" title="Choose a person">
110110
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
111111
<ui-select-choices repeat="item in people | filter: $select.search">
112112
<div ng-bind-html="item.name | highlight: $select.search"></div>

Diff for: examples/selectize-bootstrap3.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<label class="col-sm-3 control-label">Default</label>
6969
<div class="col-sm-6">
7070

71-
<ui-select ng-model="person.selected" theme="selectize">
71+
<ui-select ng-model="person.selected" theme="selectize" title="Choose a person">
7272
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
7373
<ui-select-choices repeat="item in people | filter: $select.search">
7474
<div ng-bind-html="item.name | highlight: $select.search"></div>
@@ -83,7 +83,7 @@
8383
<label class="col-sm-3 control-label">Grouped</label>
8484
<div class="col-sm-6">
8585

86-
<ui-select ng-model="person.selected" theme="selectize">
86+
<ui-select ng-model="person.selected" theme="selectize" title="Choose a person">
8787
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
8888
<ui-select-choices group-by="'group'" repeat="item in people | filter: $select.search">
8989
<span ng-bind-html="item.name | highlight: $select.search"></span>
@@ -121,7 +121,7 @@
121121
<label class="col-sm-3 control-label">Disabled</label>
122122
<div class="col-sm-6">
123123

124-
<ui-select ng-model="person.selected" theme="selectize" class="form-control" ng-disabled="true">
124+
<ui-select ng-model="person.selected" theme="selectize" class="form-control" ng-disabled="true" title="Choose a person">
125125
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
126126
<ui-select-choices repeat="item in people | filter: $select.search">
127127
<div ng-bind-html="item.name | highlight: $select.search"></div>

0 commit comments

Comments
 (0)