comparison default/node_modules/tablesaw/demo/webpack/webpack.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
11 <script src="bundle.js"></script>
12 <!-- <script src="../../dist/tablesaw-init.js"></script> -->
13 <script>
14 // manual init (optionally you can use tablesaw-init.js above)
15 Tablesaw.init();
16 // Tablesaw.init( myElement ); // pass an element to only init within a context
17 </script>
18 </head>
19 <body>
20 <h2>Kitchen Sink using a Webpack Bundle</h2>
21 <p>This demonstration table contains all of the bells and whistles available in tablesaw: Swipe Mode, ModeSwitch, Minimap, Sortable, and SortableSwitch.</p>
22
23 <table class="tablesaw" data-tablesaw-mode="columntoggle" data-tablesaw-sortable data-tablesaw-sortable-switch data-tablesaw-minimap data-tablesaw-mode-switch>
24 <thead>
25 <tr>
26 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
27 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
28 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
29 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
30 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="4">Gross</th>
31 </tr>
32 </thead>
33 <tbody>
34 <tr>
35 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
36 <td>1</td>
37 <td>2009</td>
38 <td>83%</td>
39 <td>$2.7B</td>
40 </tr>
41 <tr>
42 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
43 <td>2</td>
44 <td>1997</td>
45 <td>88%</td>
46 <td>$2.1B</td>
47 </tr>
48 <tr>
49 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Avengers_(2012_film)">The Avengers</a></td>
50 <td>3</td>
51 <td>2012</td>
52 <td>92%</td>
53 <td>$1.5B</td>
54 </tr>
55 <tr>
56 <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>
57 <td>4</td>
58 <td>2011</td>
59 <td>96%</td>
60 <td>$1.3B</td>
61 </tr>
62 <tr>
63 <td class="title"><a href="http://en.wikipedia.org/wiki/Frozen_(2013_film)">Frozen</a></td>
64 <td>5</td>
65 <td>2013</td>
66 <td>89%</td>
67 <td>$1.2B</td>
68 </tr>
69 <tr>
70 <td class="title"><a href="http://en.wikipedia.org/wiki/Iron_Man_3">Iron Man 3</a></td>
71 <td>6</td>
72 <td>2013</td>
73 <td>78%</td>
74 <td>$1.2B</td>
75 </tr>
76 <tr>
77 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Dark_of_the_Moon">Transformers: Dark of the Moon</a></td>
78 <td>7</td>
79 <td>2011</td>
80 <td>36%</td>
81 <td>$1.1B</td>
82 </tr>
83 <tr>
84 <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>
85 <td>8</td>
86 <td>2003</td>
87 <td>95%</td>
88 <td>$1.1B</td>
89 </tr>
90 <tr>
91 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
92 <td>9</td>
93 <td>2012</td>
94 <td>92%</td>
95 <td>$1.1B</td>
96 </tr>
97 <tr>
98 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
99 <td>10</td>
100 <td>2014</td>
101 <td>18%</td>
102 <td>$1.0B</td>
103 </tr>
104 </tbody>
105 </table>
106 </body>
107 </html>