"Bootstrap TreeView"
Bootstrap 3.3.0 Snippet by atatanasov

1
2
3
4
5
6
7
8
9
10
<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 ---------->
<script src="https://cdn.rawgit.com/atatanasov/gijgo/master/dist/combined/js/gijgo.min.js" type="text/javascript"></script>
<link href="https://cdn.rawgit.com/atatanasov/gijgo/master/dist/combined/css/gijgo.min.css" rel="stylesheet" type="text/css" />
<div id="tree"></div>
<br/>
<p><a href="http://gijgo.com/tree/demos/bootstrap-treeview">Bootstrap TreeView</a> powered by gijgo.com</p>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
$(document).ready(function() {
$('#tree').tree({
dataSource: [
{ text: 'North America', children: [ { text: 'USA', children: [ { text: 'California' }, { text: 'Miami' } ] }, { text: 'Canada' }, { text: 'Mexico' } ] },
{ text: 'Europe', children: [ { text: 'France' }, { text: 'Spain' }, { text: 'Italy' } ] },
{ text: 'South America', children: [ { text: 'Brazil' }, { text: 'Argentina' }, { text: 'Columbia' } ] }
],
width: 500,
uiLibrary: 'bootstrap'
});
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

thanks

Антон () - 8 years ago - Reply 0


Nice me sirve

Robert LUgo () - 8 years ago - Reply 0