comparison default/node_modules/tablesaw/demo/toggle-set.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>
14 TablesawConfig = {
15 getColumnToggleLabelTemplate: function( text ) {
16 return "<label><input type='checkbox' checked><span>" + text + "</span></label>";
17 }
18 };
19 </script>
20 <script src="../dist/tablesaw.js"></script>
21 <script src="../dist/tablesaw-init.js"></script>
22 <script src="//filamentgroup.github.io/demo-head/loadfont.js"></script>
23 </head>
24 <body>
25 <div class="demo-header">
26 <div class="company">
27 <img src="http://filamentgroup.com/images/fg-logo-positive-sm-crop.png">
28 </div>
29 <div class="details">
30 <h1 class="description-container">Demo of <span class="repo-name">Tablesaw</span>
31 <span class="description">A group of plugins for responsive tables.</span>
32 </h1>
33 <ul class="outbound-links">
34 <li><a href="https://github.com/filamentgroup/tablesaw">Code</a></li>
35 <li><a href="https://github.com/filamentgroup/tablesaw/issues">Issues</a></li>
36 </ul>
37 </div>
38 </div>
39 <div class="nav-container">
40 <div class="docs-globalnav">
41 <nav class="docs-nav">
42 <a href="kitchensink.html">Kitchen Sink</a>
43 <a href="modeswitch.html">Mode Switch</a>
44 <a href="sort.html">Sortable</a>
45 <a href="stack.html">Stack</a>
46 <a href="stackonly.html">Stack Only</a>
47 <a href="swipe.html">Swipe Table</a>
48 <a href="toggle.html" class="current">Toggle</a>
49 <a href="checkall.html">Check All</a>
50 </nav>
51 </div>
52 </div>
53 <div class="docs-main">
54
55 <h2>Column Toggle Table Set</h2>
56 <p>A single column chooser that will control multiple tables.</p>
57 <table class="tablesaw" data-tablesaw-mode="columntoggle" data-tablesaw-columntoggle-set="set-a">
58 <thead>
59 <tr>
60 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
61 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
62 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
63 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="0" colspan="2">Gross</th>
64 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
65 </tr>
66 </thead>
67 <tbody>
68 <tr>
69 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
70 <td>1</td>
71 <td rowspan="2">2009</td>
72 <td>$2.7B</td>
73 <td>$2.7B</td>
74 <td>83%</td>
75 </tr>
76 <tr>
77 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
78 <td>2</td>
79 <td>$2.1B</td>
80 <td>$2.1B</td>
81 <td>88%</td>
82 </tr>
83 </tbody>
84 </table>
85
86 <table class="tablesaw" data-tablesaw-mode="columntoggle" data-tablesaw-columntoggle-set="set-a">
87 <thead>
88 <tr>
89 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
90 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
91 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
92 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="0" colspan="2">Gross</th>
93 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
94 </tr>
95 </thead>
96 <tbody>
97 <tr>
98 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Dark_of_the_Moon">Transformers: Dark of the Moon</a></td>
99 <td>7</td>
100 <td>2011</td>
101 <td>$1.1B</td>
102 <td>$1.1B</td>
103 <td>36%</td>
104 </tr>
105 <tr>
106 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Lord_of_the_Rings:_The_Return_of_the_King">The Lord of the Rings: The Return of the King</a></td>
107 <td>8</td>
108 <td>2003</td>
109 <td>$1.1B</td>
110 <td>$1.1B</td>
111 <td>95%</td>
112 </tr>
113 <tr>
114 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
115 <td>9</td>
116 <td>2012</td>
117 <td>$1.1B</td>
118 <td>$1.1B</td>
119 <td>92%</td>
120 </tr>
121 <tr>
122 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
123 <td>10</td>
124 <td>2014</td>
125 <td>$1.0B</td>
126 <td>$1.0B</td>
127 <td>18%</td>
128 </tr>
129 </tbody>
130 </table>
131
132 <table class="tablesaw" data-tablesaw-mode="columntoggle" data-tablesaw-columntoggle-set="set-a">
133 <thead>
134 <tr>
135 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
136 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
137 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
138 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="0" colspan="2">Gross</th>
139 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
140 </tr>
141 </thead>
142 <tbody>
143 <tr>
144 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
145 <td>1</td>
146 <td rowspan="2">2009</td>
147 <td>$2.7B</td>
148 <td>$2.7B</td>
149 <td>83%</td>
150 </tr>
151 <tr>
152 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
153 <td>2</td>
154 <td>$2.1B</td>
155 <td>$2.1B</td>
156 <td>88%</td>
157 </tr>
158 <tr>
159 <td class="title"><a href="http://en.wikipedia.org/wiki/Frozen_(2013_film)">Frozen</a></td>
160 <td>5</td>
161 <td>2013</td>
162 <td>$1.2B</td>
163 <td>$1.2B</td>
164 <td>89%</td>
165 </tr>
166 </tbody>
167 </table>
168
169 <table class="tablesaw" data-tablesaw-mode="columntoggle" data-tablesaw-columntoggle-set="set-a">
170 <thead>
171 <tr>
172 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
173 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
174 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
175 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="0" colspan="2">Gross</th>
176 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
177 </tr>
178 </thead>
179 <tbody>
180 <tr>
181 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
182 <td>9</td>
183 <td>2012</td>
184 <td>$1.1B</td>
185 <td>$1.1B</td>
186 <td>92%</td>
187 </tr>
188 <tr>
189 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
190 <td>10</td>
191 <td>2014</td>
192 <td>$1.0B</td>
193 <td>$1.0B</td>
194 <td>18%</td>
195 </tr>
196 </tbody>
197 </table>
198 </div>
199
200 </body>
201 </html>