forked from john-oc/acute-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (62 loc) · 3.1 KB
/
index.html
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
<!DOCTYPE html>
<html id="ng-app" ng-app="acuteSelectTest">
<head>
<title>Acute Bootstrap Select</title>
<!-- jquery and angular -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- acute-select -->
<script type="text/javascript" src="../acute-select/acute.select/acute.select.js"></script>
<script type="text/javascript" src="../acute-select/acute.select/acute.dropdown.fix.js"></script>
<link rel="stylesheet" href="../acute-select/acute.select/acute.select.css"/>
<script type="text/javascript" src="../acute-select/app.js"></script>
</head>
<body>
<div ng-controller="MainCtrl">
<div class="row">
<div class="col-md-6 col-md-push-3">
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav nav-pills">
<li class="dropdown navbar-text">
<a href=""
data-toggle="dropdown"
data-ng-click="focusstatus = !focusstatus"
data-ng-class="{'filter-unselected': !filters.Status}">
{{dropdownItems}} <span class="caret"></span></a>
<ul class="dropdown-menu keep-open">
<li>
<select class="ac-select"
ac-model="filters.selectedColour"
ac-options="colour as colour.name for colour in colours"
ac-data="colours"
ac-placeholder="{{dropdownItems}}"
ac-focus-when="focusstatus"
ac-settings="{minWidth: '350px'}"
ac-change="loadSection()">
</select>
</li>
</ul>
</li>
<li class="navbar-text">
<a href=""
data-ng-click="clearFilters(); loadSection()">
Clear
</a>
</li>
</ul>
</div>
</nav>
<div class="alert alert-info">
<p>{{message}}</p>
<p>Selected shade: {{filters.selectedColour.shade}}</p>
</div>
</div>
</div>
</div>
</body>
</html>