0
|
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/tablesaw.js"></script>
|
|
14 <script src="../dist/tablesaw-init.js"></script>
|
|
15 <script src="//filamentgroup.github.io/demo-head/loadfont.js"></script>
|
|
16 </head>
|
|
17 <body>
|
|
18 <div class="demo-header">
|
|
19 <div class="company">
|
|
20 <img src="http://filamentgroup.com/images/fg-logo-positive-sm-crop.png">
|
|
21 </div>
|
|
22 <div class="details">
|
|
23 <h1 class="description-container">Demo of <span class="repo-name">Tablesaw</span>
|
|
24 <span class="description">A group of plugins for responsive tables.</span>
|
|
25 </h1>
|
|
26 <ul class="outbound-links">
|
|
27 <li><a href="https://github.com/filamentgroup/tablesaw">Code</a></li>
|
|
28 <li><a href="https://github.com/filamentgroup/tablesaw/issues">Issues</a></li>
|
|
29 </ul>
|
|
30 </div>
|
|
31 </div>
|
|
32 <div class="nav-container">
|
|
33 <div class="docs-globalnav">
|
|
34 <nav class="docs-nav">
|
|
35 <a href="kitchensink.html">Kitchen Sink</a>
|
|
36 <a href="modeswitch.html">Mode Switch</a>
|
|
37 <a href="sort.html">Sortable</a>
|
|
38 <a href="stack.html">Stack</a>
|
|
39 <a href="stackonly.html">Stack Only</a>
|
|
40 <a href="swipe.html">Swipe Table</a>
|
|
41 <a href="toggle.html">Toggle</a>
|
|
42 <a href="checkall.html" class="current">Check All</a>
|
|
43 </nav>
|
|
44 </div>
|
|
45 </div>
|
|
46 <div class="docs-main">
|
|
47
|
|
48 <h2>Check All Header</h2>
|
|
49 <table class="tablesaw" data-tablesaw>
|
|
50 <thead>
|
|
51 <tr>
|
|
52 <th scope="col"><label><input type="checkbox" data-tablesaw-checkall><span class="sr-only"> Check All</span></label></th>
|
|
53 <th scope="col">Movie Title <a href="#" data-tablesaw-checkall="#checkall-target">Toggle All Checkboxes</a> <a href="#" data-tablesaw-checkall="#checkall-target" data-tablesaw-checkall-checked>Check All</a> <a href="#" data-tablesaw-checkall="#checkall-target" data-tablesaw-checkall-unchecked>Uncheck All</a></th>
|
|
54 <th scope="col">Rank</th>
|
|
55 <th scope="col">Year</th>
|
|
56 <th scope="col"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
|
|
57 <th scope="col">Gross</th>
|
|
58 </tr>
|
|
59 </thead>
|
|
60 <tbody id="checkall-target">
|
|
61 <tr>
|
|
62 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
63 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
|
|
64 <td>1</td>
|
|
65 <td>2009</td>
|
|
66 <td>83%</td>
|
|
67 <td>$2.7B</td>
|
|
68 </tr>
|
|
69 <tr>
|
|
70 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
71 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
|
|
72 <td>2</td>
|
|
73 <td>1997</td>
|
|
74 <td>88%</td>
|
|
75 <td>$2.1B</td>
|
|
76 </tr>
|
|
77 <tr>
|
|
78 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
79 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Avengers_(2012_film)">The Avengers</a></td>
|
|
80 <td>3</td>
|
|
81 <td>2012</td>
|
|
82 <td>92%</td>
|
|
83 <td>$1.5B</td>
|
|
84 </tr>
|
|
85 <tr>
|
|
86 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
87 <td class="title"><a href="http://en.wikipedia.org/wiki/Harry_Potter_and_the_Deathly_Hallows_%E2%80%93_Part_2">Harry Potter and the Deathly Hallows—Part 2</a></td>
|
|
88 <td>4</td>
|
|
89 <td>2011</td>
|
|
90 <td>96%</td>
|
|
91 <td>$1.3B</td>
|
|
92 </tr>
|
|
93 <tr>
|
|
94 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
95 <td class="title"><a href="http://en.wikipedia.org/wiki/Frozen_(2013_film)">Frozen</a></td>
|
|
96 <td>5</td>
|
|
97 <td>2013</td>
|
|
98 <td>89%</td>
|
|
99 <td>$1.2B</td>
|
|
100 </tr>
|
|
101 <tr>
|
|
102 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
103 <td class="title"><a href="http://en.wikipedia.org/wiki/Iron_Man_3">Iron Man 3</a></td>
|
|
104 <td>6</td>
|
|
105 <td>2013</td>
|
|
106 <td>78%</td>
|
|
107 <td>$1.2B</td>
|
|
108 </tr>
|
|
109 <tr>
|
|
110 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
111 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Dark_of_the_Moon">Transformers: Dark of the Moon</a></td>
|
|
112 <td>7</td>
|
|
113 <td>2011</td>
|
|
114 <td>36%</td>
|
|
115 <td>$1.1B</td>
|
|
116 </tr>
|
|
117 <tr>
|
|
118 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
119 <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>
|
|
120 <td>8</td>
|
|
121 <td>2003</td>
|
|
122 <td>95%</td>
|
|
123 <td>$1.1B</td>
|
|
124 </tr>
|
|
125 <tr>
|
|
126 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
127 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
|
|
128 <td>9</td>
|
|
129 <td>2012</td>
|
|
130 <td>92%</td>
|
|
131 <td>$1.1B</td>
|
|
132 </tr>
|
|
133 <tr>
|
|
134 <td><label><input type="checkbox"><span class="sr-only"> Select Row</span></label></td>
|
|
135 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
|
|
136 <td>10</td>
|
|
137 <td>2014</td>
|
|
138 <td>18%</td>
|
|
139 <td>$1.0B</td>
|
|
140 </tr>
|
|
141 </tbody>
|
|
142 </table>
|
|
143
|
|
144 </div>
|
|
145
|
|
146 </body>
|
|
147 </html>
|