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 Sortable 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" class="current">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">Check All</a>
|
|
43 </nav>
|
|
44 </div>
|
|
45 </div>
|
|
46 <div class="docs-main">
|
|
47 <h2>Mode Switch Table</h2>
|
|
48 <p>The mode switcher allows the user to select which tablesaw view to use.</p>
|
|
49 <table class="tablesaw" data-tablesaw-mode="swipe" data-tablesaw-mode-switch data-tablesaw-minimap>
|
|
50 <thead>
|
|
51 <tr>
|
|
52 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
|
|
53 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
|
|
54 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
|
|
55 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
|
|
56 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="4">Gross</th>
|
|
57 </tr>
|
|
58 </thead>
|
|
59 <tbody>
|
|
60 <tr>
|
|
61 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
|
|
62 <td>1</td>
|
|
63 <td>2009</td>
|
|
64 <td>83%</td>
|
|
65 <td>$2.7B</td>
|
|
66 </tr>
|
|
67 <tr>
|
|
68 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
|
|
69 <td>2</td>
|
|
70 <td>1997</td>
|
|
71 <td>88%</td>
|
|
72 <td>$2.1B</td>
|
|
73 </tr>
|
|
74 <tr>
|
|
75 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Avengers_(2012_film)">The Avengers</a></td>
|
|
76 <td>3</td>
|
|
77 <td>2012</td>
|
|
78 <td>92%</td>
|
|
79 <td>$1.5B</td>
|
|
80 </tr>
|
|
81 <tr>
|
|
82 <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>
|
|
83 <td>4</td>
|
|
84 <td>2011</td>
|
|
85 <td>96%</td>
|
|
86 <td>$1.3B</td>
|
|
87 </tr>
|
|
88 <tr>
|
|
89 <td class="title"><a href="http://en.wikipedia.org/wiki/Frozen_(2013_film)">Frozen</a></td>
|
|
90 <td>5</td>
|
|
91 <td>2013</td>
|
|
92 <td>89%</td>
|
|
93 <td>$1.2B</td>
|
|
94 </tr>
|
|
95 <tr>
|
|
96 <td class="title"><a href="http://en.wikipedia.org/wiki/Iron_Man_3">Iron Man 3</a></td>
|
|
97 <td>6</td>
|
|
98 <td>2013</td>
|
|
99 <td>78%</td>
|
|
100 <td>$1.2B</td>
|
|
101 </tr>
|
|
102 <tr>
|
|
103 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Dark_of_the_Moon">Transformers: Dark of the Moon</a></td>
|
|
104 <td>7</td>
|
|
105 <td>2011</td>
|
|
106 <td>36%</td>
|
|
107 <td>$1.1B</td>
|
|
108 </tr>
|
|
109 <tr>
|
|
110 <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>
|
|
111 <td>8</td>
|
|
112 <td>2003</td>
|
|
113 <td>95%</td>
|
|
114 <td>$1.1B</td>
|
|
115 </tr>
|
|
116 <tr>
|
|
117 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
|
|
118 <td>9</td>
|
|
119 <td>2012</td>
|
|
120 <td>92%</td>
|
|
121 <td>$1.1B</td>
|
|
122 </tr>
|
|
123 <tr>
|
|
124 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
|
|
125 <td>10</td>
|
|
126 <td>2014</td>
|
|
127 <td>18%</td>
|
|
128 <td>$1.0B</td>
|
|
129 </tr>
|
|
130 </tbody>
|
|
131 </table>
|
|
132
|
|
133 <h2>Exclude columntoggle Mode</h2>
|
|
134 <table class="tablesaw" data-tablesaw-mode="swipe" data-tablesaw-mode-switch data-tablesaw-minimap data-tablesaw-mode-exclude="columntoggle">
|
|
135 <thead>
|
|
136 <tr>
|
|
137 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
|
|
138 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
|
|
139 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
|
|
140 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
|
|
141 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="4">Gross</th>
|
|
142 </tr>
|
|
143 </thead>
|
|
144 <tbody>
|
|
145 <tr>
|
|
146 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
|
|
147 <td>1</td>
|
|
148 <td>2009</td>
|
|
149 <td>83%</td>
|
|
150 <td>$2.7B</td>
|
|
151 </tr>
|
|
152 <tr>
|
|
153 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
|
|
154 <td>2</td>
|
|
155 <td>1997</td>
|
|
156 <td>88%</td>
|
|
157 <td>$2.1B</td>
|
|
158 </tr>
|
|
159 <tr>
|
|
160 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Avengers_(2012_film)">The Avengers</a></td>
|
|
161 <td>3</td>
|
|
162 <td>2012</td>
|
|
163 <td>92%</td>
|
|
164 <td>$1.5B</td>
|
|
165 </tr>
|
|
166 <tr>
|
|
167 <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>
|
|
168 <td>4</td>
|
|
169 <td>2011</td>
|
|
170 <td>96%</td>
|
|
171 <td>$1.3B</td>
|
|
172 </tr>
|
|
173 <tr>
|
|
174 <td class="title"><a href="http://en.wikipedia.org/wiki/Frozen_(2013_film)">Frozen</a></td>
|
|
175 <td>5</td>
|
|
176 <td>2013</td>
|
|
177 <td>89%</td>
|
|
178 <td>$1.2B</td>
|
|
179 </tr>
|
|
180 <tr>
|
|
181 <td class="title"><a href="http://en.wikipedia.org/wiki/Iron_Man_3">Iron Man 3</a></td>
|
|
182 <td>6</td>
|
|
183 <td>2013</td>
|
|
184 <td>78%</td>
|
|
185 <td>$1.2B</td>
|
|
186 </tr>
|
|
187 <tr>
|
|
188 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Dark_of_the_Moon">Transformers: Dark of the Moon</a></td>
|
|
189 <td>7</td>
|
|
190 <td>2011</td>
|
|
191 <td>36%</td>
|
|
192 <td>$1.1B</td>
|
|
193 </tr>
|
|
194 <tr>
|
|
195 <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>
|
|
196 <td>8</td>
|
|
197 <td>2003</td>
|
|
198 <td>95%</td>
|
|
199 <td>$1.1B</td>
|
|
200 </tr>
|
|
201 <tr>
|
|
202 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
|
|
203 <td>9</td>
|
|
204 <td>2012</td>
|
|
205 <td>92%</td>
|
|
206 <td>$1.1B</td>
|
|
207 </tr>
|
|
208 <tr>
|
|
209 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
|
|
210 <td>10</td>
|
|
211 <td>2014</td>
|
|
212 <td>18%</td>
|
|
213 <td>$1.0B</td>
|
|
214 </tr>
|
|
215 </tbody>
|
|
216 </table>
|
|
217 </div>
|
|
218 </body>
|
|
219 </html>
|