spec/html/bootstrap-treeview.html in patternfly-sass-3.11.0 vs spec/html/bootstrap-treeview.html in patternfly-sass-3.12.0
- old
+ new
@@ -25,11 +25,11 @@
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
<link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
<link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <script src="//rawgit.com/patternfly/patternfly-bootstrap-treeview/patternfly/dist/bootstrap-treeview.min.js"></script>
+ <script src="//rawgit.com/patternfly/patternfly-bootstrap-treeview/v2.1.0/dist/bootstrap-treeview.min.js"></script>
<script src="../../dist/js/patternfly.min.js"></script>
</head>
<body>
<div class="container">
@@ -91,16 +91,20 @@
<div class="col-sm-4">
<h2>Lazy Load</h2>
<div id="treeview10"></div>
</div><!--/col-->
<div class="col-sm-4">
- <h2>Prevent Unselection</h2>
- <div id="treeview11"></div>
+ <h2>Hover and Select</h2>
+ <div id="treeview13" class="treeview-pf-hover treeview-pf-select"></div>
</div><!--/col-->
</div>
<div class="row">
<div class="col-sm-4">
+ <h2>Prevent Unselection</h2>
+ <div id="treeview11" class="treeview-pf-select"></div>
+ </div><!--/col-->
+ <div class="col-sm-4">
<h2>Disabled Nodes</h2>
<div id="treeview12"></div>
</div><!--/col-->
</div><!--/row-->
<script>
@@ -358,9 +362,18 @@
levels: 99,
nodeIcon: nodeIcon,
showBorder: false
});
tree12.treeview('disableAll');
+
+ //Hover and Select
+ $('#treeview13').treeview({
+ collapseIcon: collapseIcon,
+ data: defaultData,
+ expandIcon: expandIcon,
+ nodeIcon: nodeIcon,
+ showBorder: false
+ });
});
</script>
</div><!-- /container -->