|
|
Description
One-sentence summary of this page.
Introduction
This is very simple widget for Tablesorter - a JQuery plugin; used for grouping (and optionally collapsing) rows of sorted table. All script is very simple, automated and chaotic - but works.
Installation
Widget system handling and installing is described on Tablesorter site, those instructions will be working for our widget, but will be better to set additional parameters, eg :
$("table.tablesorter").tablesorter({
widgets: ['groups'],
emptyGroupCaption: "(none)",
collapsableGroups: true
});Value of first extending setting (emptyGroupCaption) is used as description of empty groups, eg :
| header 1 ↓ | header 2 |
| (none) | |
| value | |
| value | |
| A | |
| Abba | value |
| Arrow | value |
| Anything | value |
| B | |
| Ball | value |
| Bird | value |
| Brr | value |
Next one (collapsableGroups) is setting ability to collapsing single group - like this :
| header 1 ↓ | header 2 |
| (none) | |
| value | |
| value | |
| A 3 | |
| B | |
| Ball | value |
| Bird | value |
| Brr | value |
A special effect is the digit, which indicates number of collapsed rows.
Sign in to add a comment
