123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
- <link rel="shortcut icon" href="../../assets/ico/favicon.png">
- <title>TreeGrid for Bootstrap 3.0.x</title>
- <!-- Bootstrap core CSS -->
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
- <link rel="stylesheet" href="../css/jquery.treegrid.css">
- <link rel="stylesheet" href="http://yandex.st/highlightjs/7.3/styles/default.min.css">
- <script src="http://yandex.st/highlightjs/7.3/highlight.min.js"></script>
- <script>hljs.initHighlightingOnLoad();</script>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
- <script type="text/javascript" src="../js/jquery.treegrid.js"></script>
- <script type="text/javascript" src="../js/jquery.treegrid.bootstrap3.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('.tree').treegrid();
- $('.tree-2').treegrid({
- expanderExpandedClass: 'glyphicon glyphicon-minus',
- expanderCollapsedClass: 'glyphicon glyphicon-plus'
- });
- });
- </script>
- <script>
- (function(i, s, o, g, r, a, m) {
- i['GoogleAnalyticsObject'] = r;
- i[r] = i[r] || function() {
- (i[r].q = i[r].q || []).push(arguments)
- }, i[r].l = 1 * new Date();
- a = s.createElement(o),
- m = s.getElementsByTagName(o)[0];
- a.async = 1;
- a.src = g;
- m.parentNode.insertBefore(a, m)
- })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
- ga('create', 'UA-43342702-1', 'maxazan.github.io');
- ga('send', 'pageview');
- </script>
- </head>
- <body>
- <div class="container">
- <h1><a href="http://maxazan.github.io/jquery-treegrid/">TreeGrid</a> Bootstrap 3 examples</h1>
- <table class="table tree">
- <tr class="treegrid-1">
- <td>Root node 1</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-2 treegrid-parent-1">
- <td>Node 1-1</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-3 treegrid-parent-1">
- <td>Node 1-2</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-4 treegrid-parent-3">
- <td>Node 1-2-1</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-5">
- <td>Root node 2</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-6 treegrid-parent-5">
- <td>Node 2-1</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-7 treegrid-parent-5">
- <td>Node 2-2</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-8 treegrid-parent-7">
- <td>Node 2-2-1</td><td>Additional info</td>
- </tr>
- </table>
- <h3>Code</h3>
- <pre><code class="html"><link href="bootstrap-3.0.0/css/bootstrap.css" rel="stylesheet">
- <link rel="stylesheet" href="../css/jquery.treegrid.css">
- <script type="text/javascript" src="../js/jquery.treegrid.js"></script>
- <script type="text/javascript" src="../js/jquery.treegrid.bootstrap3.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('.tree').treegrid();
- });
- </script></code></pre>
- <h2>Bootstrap TreeGrid example<br>
- table-bordered table-striped table-condensed<br>
- custom expander</h2>
- <table class="table tree-2 table-bordered table-striped table-condensed">
- <tr class="treegrid-1">
- <td>Root node 1</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-2 treegrid-parent-1">
- <td>Node 1-1</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-3 treegrid-parent-1">
- <td>Node 1-2</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-4 treegrid-parent-3">
- <td>Node 1-2-1</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-5">
- <td>Root node 2</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-6 treegrid-parent-5">
- <td>Node 2-1</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-7 treegrid-parent-5">
- <td>Node 2-2</td><td>Additional info</td>
- </tr>
- <tr class="treegrid-8 treegrid-parent-7">
- <td>Node 2-2-1</td><td>Additional info</td>
- </tr>
- </table>
- <h3>Code</h3>
- <pre><code class="html"><link href="bootstrap-3.0.0/css/bootstrap.css" rel="stylesheet">
- <link rel="stylesheet" href="../css/jquery.treegrid.css">
- <script type="text/javascript" src="../js/jquery.treegrid.js"></script>
- <script type="text/javascript" src="../js/jquery.treegrid.bootstrap3.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('.tree').treegrid({
- expanderExpandedClass: 'glyphicon glyphicon-minus',
- expanderCollapsedClass: 'glyphicon glyphicon-plus'
- });
- });
- </script></code></pre>
- </div> <!-- /container -->
- <!-- Bootstrap core JavaScript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- </body>
- </html>
|