wiki:TableSorterPlugin

Version 13 (modified by figaro, 8 years ago) (diff)

Added generic installation instructions

TableSorterPlugin

Description

This plugin adds the tablesorter jQuery plugin for turning HTML tables with THEAD and TBODY tags into a sortable table without page refreshes. This plugin is a wrapper around the third-party Javascript library jquery.tablesorter, that is dual licensed under the MIT and GPL licenses.

Bugs/Feature Requests

Existing bugs and feature requests for TableSorterPlugin are here.

If you have any issues, create a new ticket.

defect

1 / 1

enhancement

1 / 2

task

1 / 1

Download

Download the zipped source from here.

Source

You can check out TableSorterPlugin from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Example

A screenshot with a table with sortable headings would look as follows:

Example screenshot

The tablesorter plugin requires a THEAD tag, which is not added to normal wiki tables, so use WikiHtml instead. The class tablesorter is also required:

{{{#!html

<table id="myTable" class="tablesorter"> 
<thead> 
<tr> 
    <th>Last Name</th> 
    <th>First Name</th> 
    <th>Email</th> 
    <th>Due</th> 
</tr> 
</thead> 
<tbody> 
<tr> 
    <td>Smith</td> 
    <td>John</td> 
    <td>jsmith@gmail.com</td> 
    <td>$50.00</td> 
</tr> 
<tr> 
    <td>Bach</td> 
    <td>Frank</td> 
    <td>fbach@yahoo.com</td> 
    <td>$50.00</td> 
</tr> 
<tr> 
    <td>Doe</td> 
    <td>Jason</td> 
    <td>jdoe@hotmail.com</td> 
    <td>$100.00</td> 
</tr> 
<tr> 
    <td>Conway</td> 
    <td>Tim</td> 
    <td>tconway@earthlink.net</td> 
    <td>$50.00</td> 
</tr> 
</tbody> 
</table> 

}}}

Recent Changes

16392 by psuter on 2017-03-25 08:19:26
TableSorterPlugin: Using jQuery at global scope to avoid the possibility of conflicts.
(see #12624)
16381 by psuter on 2017-03-24 18:35:08
TableSorterPlugin: Bump version to 1.1.
(see #12850)
16380 by psuter on 2017-03-24 18:33:06
TableSorterPlugin: Fix problem with multiple tables.
(see #12850)
(more)

Author/Contributors

Author: psuter
Maintainer: Peter Suter
Contributors:

Attachments (2)

Download all attachments as: .zip