"Tree menu"
Bootstrap 3.3.0 Snippet by eduluzcp

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="btn btn-default btn-warning" title="Reload"><i class="glyphicon glyphicon-refresh "></i> Reload</div>
<div class="btn btn-default pull-right btn-success" title="Commit the changes"><i class="glyphicon glyphicon-cloud-upload"></i> Commit</div>
</div>
<div class="col-md-8">
<div class="btn btn-default btn-warning" title="Reload"><i class="glyphicon glyphicon-refresh"></i> Reload</div>
<div class="btn btn-default btn-success" title="Save"><i class="glyphicon glyphicon-floppy-saved"></i> Save</div>
<div class="btn btn-default pull-right btn-info" title="Run"><i class="glyphicon glyphicon-play"></i> Run</div>
</div>
</div>
<div class="row">
<div class="col-md-3">
<div class="well" style="padding: 8px;">
<ul class="nav nav-list">
<li>
<div class="pull-right">
<div class="btn btn-xs small btn-default" data-component="module">+ mod</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
.tree > li > label {
padding: 0 10px;
}
.tree {
padding: 0 10px;
}
.nav-header {
display: block;
padding: 3px 15px;
font-size: 10px;
font-weight: bold;
line-height: 20px;
color: #999999;
/* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);*/
text-transform: uppercase;
}
.nav-list>li>a, .nav-list .nav-header {
margin-left: -15px;
margin-right: -15px;
font-size: 11px;
/* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);*/
}
.nav a {
text-align: left;
color: navy;
text-transform: uppercase;
}
#breadcrumb-components {
height: 40px;
vertical-align: middle;
padding: 10px;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
MainApp = {
init : function() {
$('label.tree-toggler').click(function () {
$(this).parent().children('ul.tree').toggle(300);
});
$(function () {
$('.tree-toggler').parent().children('ul.tree').toggle(200);
});
$("*[data-component]").on("click", function() {
// window.alert($(this).data("component"));
$("#panel-new-component").modal();
$("#hdr-form-new-component").text($(this).data("component"));
});
}
}
$(document).ready(function () {
MainApp.init();
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: