mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Docs: Add page header to grouping child demo. Fixes #1346
This commit is contained in:
parent
74589ee93b
commit
269db13f03
@ -33,7 +33,9 @@
|
||||
background: #bfbfbf;
|
||||
}
|
||||
|
||||
/* Grouping widget css */
|
||||
/* Grouping widget css;
|
||||
* contained in widget.grouping.css (added v2.28.4)
|
||||
*/
|
||||
tr.group-header td {
|
||||
background: #eee;
|
||||
}
|
||||
@ -76,9 +78,7 @@ tr.group-header.collapsed td i {
|
||||
<link rel="stylesheet" href="../css/theme.blue.css">
|
||||
<script src="../js/jquery.tablesorter.js"></script>
|
||||
<script src="../js/jquery.tablesorter.widgets.js"></script>
|
||||
|
||||
<!-- grouping widget -->
|
||||
<script src="../js/parsers/parser-input-select.js"></script>
|
||||
<script src="../js/widgets/widget-grouping.js"></script>
|
||||
|
||||
<script id="js">$(function(){
|
||||
@ -91,13 +91,13 @@ tr.group-header.collapsed td i {
|
||||
group_collapsible : true,
|
||||
group_collapsed : false,
|
||||
group_count : false,
|
||||
filter_childRows : true,
|
||||
filter_childRows : true
|
||||
}
|
||||
});
|
||||
|
||||
$('.tablesorter-childRow td').hide();
|
||||
|
||||
$('.tablesorter').delegate('.toggle', 'click' ,function(){
|
||||
$('.tablesorter').on('click', '.toggle', function(){
|
||||
$(this).closest('tr').nextUntil('tr:not(.tablesorter-childRow)').find('td').toggle();
|
||||
return false;
|
||||
});
|
||||
@ -173,6 +173,18 @@ tr.group-header.collapsed td i {
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h1>Page Header</h1>
|
||||
<div>
|
||||
<pre class="prettyprint lang-html"><!-- Tablesorter: required -->
|
||||
<link href="css/theme.blue.css" rel="stylesheet">
|
||||
<script src="js/jquery.tablesorter.js"></script>
|
||||
<script src="js/jquery.tablesorter.widgets.js"></script>
|
||||
|
||||
<!-- Grouping widget -->
|
||||
<link href="css/widget.group.css" rel="stylesheet"> <!-- added v2.28.4 -->
|
||||
<script src="js/widgets/widget-grouping.js"></script></pre>
|
||||
</div>
|
||||
|
||||
<h1>Script</h1>
|
||||
<div id="javascript">
|
||||
<pre class="prettyprint lang-js"></pre>
|
||||
|
Loading…
Reference in New Issue
Block a user