-
Notifications
You must be signed in to change notification settings - Fork 0
/
dropdown-submenu.html
44 lines (43 loc) · 1.47 KB
/
dropdown-submenu.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
<!doctype html>
<html ng-app="ui.bootstrap.demo">
<head>
<script src="libs/angular.js"></script>
<script src="libs/ui-bootstrap-tpls-0.12.0.js"></script>
<script src="js/dropdown.js"></script>
<link href="css/bootstrap.css" rel="stylesheet">
<style>
body {
margin: 20px;
}
</style>
</head>
<body>
<h3>Dropdown menu</h3>
<div ng-controller="DropdownCtrl">
<!-- dropdown-submenu -->
<div class="btn-group" dropdown is-open="status.isopen">
<button type="button" class="btn btn-primary dropdown-toggle" dropdown-toggle ng-disabled="disabled">
Button dropdown <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li class="disabled"><a>Action</a></li>
<li><a>Another action</a></li>
<li><a>Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">More options</a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else hereSomething else here</a></li>
</ul>
</li>
</ul>
</div>
<span>
<button type="button" class="btn btn-default btn-sm" ng-click="toggleDropdown($event)">Toggle button dropdown</button>
<button type="button" class="btn btn-warning btn-sm" ng-click="disabled = !disabled">Enable/Disable</button>
</span>
</div>
</body>
</html>