-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtreeview.html
executable file
·76 lines (64 loc) · 2.52 KB
/
treeview.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
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Bootstrap 3.0 / jQuery 2.0 tree view with checkboxes</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css">
.list-group-item {
padding: 5px 15px;
padding-right: 0px;
border: none;
}
input[type="checkbox"] {
margin-top: 0px;
margin-right: 0.5em;
vertical-align: -1px;
}
.tree label {
color: #555;
}
.tree label:hover {
text-decoration: underline;
}
.tree label.tree-parent {
color: #222;
}
.tree label.tree-parent:hover {
text-decoration: none;
}
</style>
</head>
<body>
<!-- Adapted partially from http://bootply.com/83798 (Steves_Boots) -->
<div class="well">
<ul class="list-group tree">
<li class="list-group-item"><input type="checkbox" /><label class="tree-toggle tree-parent">Bootstrap <span class="glyphicon glyphicon-chevron-down"></span></label>
<ul class="list-group tree">
<li class="list-group-item"><label><input type="checkbox" />JavaScript</label></li>
<li class="list-group-item"><label><input type="checkbox" />CSS</label></li>
<li class="list-group-item"><input type="checkbox" /><label class="tree-toggle tree-parent">Buttons <span class="glyphicon glyphicon-chevron-down"></span></label>
<ul class="list-group tree">
<li class="list-group-item"><label><input type="checkbox" />Colors</label></li>
<li class="list-group-item"><label><input type="checkbox" />Sizes</label></li>
<li class="list-group-item"><input type="checkbox" /><label class="tree-toggle tree-parent">Forms <span class="glyphicon glyphicon-chevron-down"></span></label>
<ul class="list-group tree">
<li class="list-group-item"><label><input type="checkbox" />Horizontal</label></li>
<li class="list-group-item"><label><input type="checkbox" />Vertical</label></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<script type='text/javascript' src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script type='text/javascript' src="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
<script type='text/javascript' src="treeview.js"></script>
</body>
</html>