Debian Codegraph @

docs/example-multiple-tbodies.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>jQuery tablesorter 2.0 - Sorting with Multiple Tbodies</title>
6
7 <!-- jQuery -->
8 <script src="js/jquery-latest.min.js"></script>
9
10 <!-- Demo stuff -->
11 <link rel="stylesheet" href="css/jq.css">
12 <link href="css/prettify.css" rel="stylesheet">
13 <script src="js/prettify.js"></script>
14 <script src="js/docs.js"></script>
15
16 <!-- Tablesorter: required -->
17 <link rel="stylesheet" href="../css/theme.blue.css">
18 <script src="../js/jquery.tablesorter.js"></script>
19
20 <!-- Tablesorter: widgets (optional) -->
21 <script src="../js/jquery.tablesorter.widgets.js"></script>
22
23 <script id="js">$(function() {
24
25 $("table").tablesorter({
26 theme : 'blue',
27 cssInfoBlock : "tablesorter-no-sort",
28 widgets: [ 'zebra', 'stickyHeaders' ]
29 });
30
31 });</script>
32 </head>
33 <body>
34 <div id="banner">
35 <h1>table<em>sorter</em></h1>
36 <h2>Sorting with Multiple Tbodies</h2>
37 <h3>Flexible client-side table sorting</h3>
38 <a href="index.html">Back to documentation</a>
39 </div>
40 <div id="main">
41 <h1>Demo</h1>
42 <div id="demo"><table class="sortable">
43 <thead>
44 <tr><th>Name</th><th>A-head</th><th>B-head</th><th>C-head</th></tr>
45 </thead>
46 <tfoot>
47 <tr><th>Name</th><th>A-foot</th><th>B-foot</th><th>C-foot</th></tr>
48 </tfoot>
49
50 <!-- add "tablesorter-no-sort" class (changed by cssInfoBlock option) to skip sorting of this tbody -->
51 <tbody class="tablesorter-no-sort">
52 <tr><th colspan="4">This row is within the first tbody set as an info block - it is not sorted!</th></tr>
53 </tbody>
54
55 <tbody>
56 <tr><td>DDD</td><td>r1c1</td><td>r1c2</td><td>r1c3</td></tr>
57 <tr><td>AAA</td><td>r2c1</td><td>r2c2</td><td>r2c3</td></tr>
58 <tr><td>CCC</td><td>r3c1</td><td>r3c2</td><td>r3c3</td></tr>
59 <tr><td>BBB</td><td>r4c1</td><td>r4c2</td><td>r4c3</td></tr>
60 </tbody>
61
62 <tbody class="tablesorter-no-sort">
63 <tr><th colspan="4">summary info for the first group</th></tr>
64 <tr><th colspan="4">Another row referring to the first group</th></tr>
65 </tbody>
66
67 <tbody>
68 <tr><td>Zorro</td><td>r5c1</td><td>r5c2</td><td>r5c3</td></tr>
69 <tr><td>Caleb</td><td>r6c1</td><td>r6c2</td><td>r6c3</td></tr>
70 <tr><td>Momo</td><td>r7c1</td><td>r7c2</td><td>r7c3</td></tr>
71 <tr><td>Wolfie</td><td>r8c1</td><td>r8c2</td><td>r8c3</td></tr>
72 </tbody>
73
74 <tbody class="tablesorter-no-sort">
75 <tr><th colspan="4">summary info for the second group</th></tr>
76 </tbody>
77
78 <tbody>
79 <tr><td>Ulysses</td><td>r9c1</td><td>r9c2</td><td>r9c3</td></tr>
80 <tr><td>Penelope</td><td>r10c1</td><td>r10c2</td><td>r10c3</td></tr>
81 <tr><td>Edvald</td><td>r11c1</td><td>r11c2</td><td>r11c3</td></tr>
82 <tr><td>Jan</td><td>r12c1</td><td>r12c2</td><td>r12c3</td></tr>
83 </tbody>
84
85 <tbody class="tablesorter-no-sort">
86 <tr><th colspan="4">summary info for the last group</th></tr>
87 </tbody>
88
89 </table></div>
90
91 <h1>Javascript</h1>
92 <div id="javascript">
93 <pre class="prettyprint lang-javascript"></pre>
94 </div>
95 <h1>HTML</h1>
96 <div id="html">
97 <pre class="prettyprint lang-html"></pre>
98 </div>
99
100 <div class="next-up">
101 <hr />
102 Next up: <a href="example-header-column-span.html">Sorting Across Multiple Columns &rsaquo;&rsaquo;</a>
103 </div>
104
105 </div>
106
107 </body>
108 </html>