84 lines
2.9 KiB
HTML
84 lines
2.9 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>TableSaw Column Toggle Table</title>
|
|
|
|
<link rel="stylesheet" href="../dist/tablesaw.css">
|
|
<link rel="stylesheet" href="demo.css">
|
|
<link rel="stylesheet" href="//filamentgroup.github.io/demo-head/demohead.css">
|
|
|
|
<script src="../dist/tablesaw.js"></script>
|
|
<script src="../dist/tablesaw-init.js"></script>
|
|
<script src="//filamentgroup.github.io/demo-head/loadfont.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="demo-header">
|
|
<div class="company">
|
|
<img src="http://filamentgroup.com/images/fg-logo-positive-sm-crop.png">
|
|
</div>
|
|
<div class="details">
|
|
<h1 class="description-container">Demo of <span class="repo-name">Tablesaw</span>
|
|
<span class="description">A group of plugins for responsive tables.</span>
|
|
</h1>
|
|
<ul class="outbound-links">
|
|
<li><a href="https://github.com/filamentgroup/tablesaw">Code</a></li>
|
|
<li><a href="https://github.com/filamentgroup/tablesaw/issues">Issues</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="nav-container">
|
|
<div class="docs-globalnav">
|
|
<nav class="docs-nav">
|
|
<a href="kitchensink.html">Kitchen Sink</a>
|
|
<a href="modeswitch.html">Mode Switch</a>
|
|
<a href="sort.html">Sortable</a>
|
|
<a href="stack.html">Stack</a>
|
|
<a href="stackonly.html">Stack Only</a>
|
|
<a href="swipe.html">Swipe Table</a>
|
|
<a href="toggle.html" class="current">Toggle</a>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<div class="docs-main">
|
|
|
|
<h2>Column Toggle with Rowspan Table</h2>
|
|
<table class="tablesaw" data-tablesaw-mode="swipe">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
|
|
<th scope="col" rowspan="2" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3" style="border: 1px solid #000">rowspan=2</th>
|
|
<th scope="col" colspan="2" data-tablesaw-sortable-col data-tablesaw-priority="2" style="border: 1px solid #000">colspan=2</th>
|
|
</tr>
|
|
<tr>
|
|
<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
|
|
<th scope="col" colspan="2" data-tablesaw-sortable-col data-tablesaw-priority="2" style="border: 1px solid #000">colspan=2</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
|
|
<td>1</td>
|
|
<td>2009</td>
|
|
<td rowspan="2" style="border: 1px solid #000">rowspan=2</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
|
|
<td>2</td>
|
|
<td>2009</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="title"><a href="http://en.wikipedia.org/wiki/The_Avengers_(2012_film)">The Avengers</a></td>
|
|
<td>3</td>
|
|
<td>2012</td>
|
|
<td>2012</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|