-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (52 loc) · 2.22 KB
/
Copy pathindex.html
File metadata and controls
66 lines (52 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en" ng-app="demo">
<head>
<meta charset="utf-8">
<title>AngularJS ui-select</title>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<script src="bower_components/ui-select/dist/select.js"></script>
<link rel="stylesheet" href="bower_components/ui-select/dist/select.css">
<script src="bower_components/angular-fast-repeat/src/fastRepeat.js"></script>
<script src="demo.js"></script>
<script src="bower_components/ng-stats/dist/ng-stats.js"></script>
<style>
body {
margin: 10px;
}
p {
margin: 10px;
}
</style>
</head>
<body ng-controller="DemoCtrl">
<h3>Bootstrap theme</h3>
<button class="btn btn-default btn-xs" ng-click="show = !show">Toggle ng-repeat</button>
<button class="btn btn-default btn-xs" ng-click="showFast = !showFast">Toggle fast-repeat</button>
<p>Selected: {{country.selected}}</p>
<div class="row" ng-if="show">
<div class="col-md-2" ng-repeat="item in range track by item.val">
<ui-select ng-model="country.selected" ng-disabled="disabled" >
<ui-select-match placeholder="Select or search a country in the list...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="country in countries | filter: $select.search">
<span ng-bind-html="country.name | highlight: $select.search"></span>
<small ng-bind-html="country.code | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
</div>
</div>
<div class="row" ng-if="showFast">
<div class="col-md-2" fast-repeat="index in range">
<ui-select ng-model="country.selected" ng-disabled="disabled" >
<ui-select-match placeholder="Select or search a country in the list...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="country in countries | filter: $select.search">
<span ng-bind-html="country.name | highlight: $select.search"></span>
<small ng-bind-html="country.code | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
</div>
</div>
</body>
</html>