forked from jseppi/angular-dropdowns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (41 loc) · 2.03 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>angular-dropdowns example</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/dropdowns.css">
<link rel="stylesheet" href="css/page.css">
<script type="text/javascript" src="lib/angular-1.1.5/angular.js"></script>
<script type="text/javascript" src="dist/angular-dropdowns.min.js"></script>
<script type="text/javascript" src="scripts/app.js"></script>
</head>
<body ng-app="app" style="margin-top:50px;">
<div ng-controller="AppCtrl">
<div style="margin:0 auto; text-align:center;">
<h1>Dropdown Select</h1>
<p>You have selected: {{ddSelectSelected}}</p>
<div dropdown-select="ddSelectOptions" dropdown-model="ddSelectSelected"></div>
<hr/>
<h1>Dropdown Menu</h1>
<h2>On a Button</h2>
<p>You have selected: {{ddMenuSelected}}</p>
<button dropdown-menu="ddMenuOptions" dropdown-model="ddMenuSelected" class="btn-menu">
Menu
</button>
<h2>On a Div</h2>
<p>And using a custom label field</p>
<p>You have selected: {{ddMenuSelected2}}</p>
<div style="cursor:pointer; width:100px; margin:0 auto;" dropdown-menu="ddMenuOptions2" dropdown-model="ddMenuSelected2" dropdown-item-label='name' class="">
Menu
</div>
<h2>On an Anchor</h2>
<p>You have selected: {{ddMenuSelected3}}</p>
<a href='' style="width:100px; margin:0 auto;" dropdown-menu="ddMenuOptions3" dropdown-model="ddMenuSelected3" class="">
Menu
</a>
</div>
</div>
</body>
</html>