comparison default/node_modules/tablesaw/demo/testcase-subrow.html @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <title>TableSaw Column Toggle Table</title>
8
9 <link rel="stylesheet" href="../dist/tablesaw.css">
10 <link rel="stylesheet" href="demo.css">
11 <link rel="stylesheet" href="//filamentgroup.github.io/demo-head/demohead.css">
12
13 <!-- <script src="../dist/dependencies/jquery.js"></script>
14 <script src="../dist/tablesaw.jquery.js"></script> -->
15 <script src="../dist/tablesaw.js"></script>
16 <script src="../dist/tablesaw-init.js"></script>
17 <script src="//filamentgroup.github.io/demo-head/loadfont.js"></script>
18 </head>
19 <body>
20 <div class="demo-header">
21 <div class="company">
22 <img src="http://filamentgroup.com/images/fg-logo-positive-sm-crop.png">
23 </div>
24 <div class="details">
25 <h1 class="description-container">Demo of <span class="repo-name">Tablesaw</span>
26 <span class="description">A group of plugins for responsive tables.</span>
27 </h1>
28 <ul class="outbound-links">
29 <li><a href="https://github.com/filamentgroup/tablesaw">Code</a></li>
30 <li><a href="https://github.com/filamentgroup/tablesaw/issues">Issues</a></li>
31 </ul>
32 </div>
33 </div>
34 <div class="nav-container">
35 <div class="docs-globalnav">
36 <nav class="docs-nav">
37 <a href="kitchensink.html" class="current">Kitchen Sink</a>
38 <a href="modeswitch.html">Mode Switch</a>
39 <a href="sort.html">Sortable</a>
40 <a href="stack.html">Stack</a>
41 <a href="stackonly.html">Stack Only</a>
42 <a href="swipe.html">Swipe Table</a>
43 <a href="toggle.html">Toggle</a>
44 <a href="checkall.html">Check All</a>
45 </nav>
46 </div>
47 </div>
48 <div class="docs-main">
49 <h2>Kitchen Sink</h2>
50 <p>This demonstration table contains all of the bells and whistles available in tablesaw: Swipe Mode, ModeSwitch, Minimap, Sortable, and SortableSwitch.</p>
51
52 <table class="table sa-table tablesaw" data-tablesaw-sortable data-tablesaw-mode="columntoggle">
53 <thead>
54 <tr>
55 <th scope="col" data-tablesaw-priority="persist"><label class="container-fluid sa-table-checkbox"><input type="checkbox" data-tablesaw-checkall><span class="sr-only"> Check All</span></label></th>
56 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="persist" class="sa-table-primarycol">Job Title</th>
57 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="3">Level</th>
58 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="3">Sub-family</th>
59 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="0">Experience</th>
60 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="0">Education</th>
61 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="6" data-tablesaw-sortable-numeric>*Base 50th (USD)</th>
62 </tr>
63 </thead>
64 <tbody>
65 <tr data-tablesaw-ignorerow>
66 <td colspan="7"><strong>Header Row</strong></td>
67 </tr>
68 <tr>
69 <td><label class="container-fluid sa-table-checkbox"><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
70 <td class="sa-table-primarycol"><a href="#">Application Systems Architect</a></td>
71 <td>Senior</td>
72 <td><a href="#">Application Systems</a></td>
73 <td>5</td>
74 <td>BA</td>
75 <td>135,200</td>
76 </tr>
77 <tr data-tablesaw-subrow class="sa-table-collapse collapse" id="expandable-row-example-1">
78 <td colspan="7">
79 <h3 class="sa-table-collapse-hed">Subrow 1</h3>
80 <!-- Start subtable -->
81 <table class="table sa-table tablesaw" data-tablesaw-mode="stack" data-tablesaw-sortable>
82 <thead>
83 <tr>
84 <th>Job Code</th>
85 </tr>
86 </thead>
87 <tbody>
88 <tr>
89 <td>EXT3440</td>
90 </tr>
91 <tr>
92 <td>EXT3441</td>
93 </tr>
94 </tbody>
95 </table>
96 <!-- End subtable -->
97 </td>
98 </tr>
99 <tr data-tablesaw-subrow>
100 <td colspan="7">
101 <h3 class="sa-table-collapse-hed">Subrow 2</h3>
102 </td>
103 </tr>
104 <tr>
105 <td><label class="container-fluid sa-table-checkbox"><input type="checkbox" checked><span class="sr-only"> Select Row</span></label></td>
106 <td class="sa-table-primarycol"><a href="#">Application Development Director</a></td>
107 <td>Senior</td>
108 <td><a href="#">Application Development</a></td>
109 <td>5</td>
110 <td>MS</td>
111 <td>145,200</td>
112 </tr>
113 <tr>
114 <td><label class="container-fluid sa-table-checkbox"><input type="checkbox" checked><span class="sr-only"> Select Row</span></label></td>
115 <td class="sa-table-primarycol"><a href="#">Application Development Manager</a></td>
116 <td>Senior</td>
117 <td><a href="#">Application Development</a></td>
118 <td>5</td>
119 <td>MS</td>
120 <td>122,200</td>
121 </tr>
122 <tr>
123 <td><label class="container-fluid sa-table-checkbox"><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
124 <td class="sa-table-primarycol"><a href="#">Applications Programmer I</a></td>
125 <td>I</td>
126 <td><a href="#">Applications Programming</a></td>
127 <td>5</td>
128 <td>MS</td>
129 <td>56,200</td>
130 </tr>
131 <tr>
132 <td><label class="container-fluid sa-table-checkbox"><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
133 <td class="sa-table-primarycol"><a href="#">Applications Programmer II</a></td>
134 <td>II</td>
135 <td><a href="#">Applications Programming</a></td>
136 <td>5</td>
137 <td>MS</td>
138 <td>67,200</td>
139 </tr>
140 <tr>
141 <td><label class="container-fluid sa-table-checkbox"><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
142 <td class="sa-table-primarycol"><a href="#">Application Designer</a></td>
143 <td></td>
144 <td>
145 </td>
146 <td></td>
147 <td></td>
148 <td>88,200</td>
149 </tr>
150 </tbody>
151 </table>
152
153 </div>
154 </body>
155 </html>