| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | |
| 3 | = TableSorter = |
| 4 | |
| 5 | == Description == |
| 6 | |
| 7 | TableSorter adds the [http://tablesorter.com/ tablesorter jQuery plugin] for turning HTML tables with THEAD and TBODY tags into a sortable table without page refreshes. |
| 8 | |
| 9 | == Bugs/Feature Requests == |
| 10 | |
| 11 | Existing bugs and feature requests for TableSorterPlugin are |
| 12 | [report:9?COMPONENT=TableSorterPlugin here]. |
| 13 | |
| 14 | If you have any issues, create a |
| 15 | [http://trac-hacks.org/newticket?component=TableSorterPlugin&owner=psuter new ticket]. |
| 16 | |
| 17 | == Download == |
| 18 | |
| 19 | Download the zipped source from [download:tablesorterplugin here]. |
| 20 | |
| 21 | == Source == |
| 22 | |
| 23 | You can check out TableSorterPlugin from [http://trac-hacks.org/svn/tablesorterplugin here] using Subversion, or [source:tablesorterplugin browse the source] with Trac. |
| 24 | |
| 25 | == Example == |
| 26 | |
| 27 | The tablesorter plugin requires a `THEAD` tag, which is not added to [trac:wiki:WikiFormatting#Tables normal wiki tables], so use [trac:wiki:WikiHtml WikiHtml] instead. The class `tablesorter` is also required: |
| 28 | {{{ |
| 29 | {{{#!html |
| 30 | <table class="tablesorter"> |
| 31 | <thead> |
| 32 | <tr> |
| 33 | <th>Last Name</th> |
| 34 | <th>First Name</th> |
| 35 | <th>Email</th> |
| 36 | <th>Due</th> |
| 37 | <th>Web Site</th> |
| 38 | </tr> |
| 39 | </thead> |
| 40 | <tbody> |
| 41 | <tr> |
| 42 | <td>Smith</td> |
| 43 | <td>John</td> |
| 44 | <td>jsmith@gmail.com</td> |
| 45 | <td>$50.00</td> |
| 46 | <td>http://www.jsmith.com</td> |
| 47 | </tr> |
| 48 | <tr> |
| 49 | <td>Bach</td> |
| 50 | <td>Frank</td> |
| 51 | <td>fbach@yahoo.com</td> |
| 52 | <td>$50.00</td> |
| 53 | <td>http://www.frank.com</td> |
| 54 | </tr> |
| 55 | <tr> |
| 56 | <td>Doe</td> |
| 57 | <td>Jason</td> |
| 58 | <td>jdoe@hotmail.com</td> |
| 59 | <td>$100.00</td> |
| 60 | <td>http://www.jdoe.com</td> |
| 61 | </tr> |
| 62 | <tr> |
| 63 | <td>Conway</td> |
| 64 | <td>Tim</td> |
| 65 | <td>tconway@earthlink.net</td> |
| 66 | <td>$50.00</td> |
| 67 | <td>http://www.timconway.com</td> |
| 68 | </tr> |
| 69 | </tbody> |
| 70 | </table> |
| 71 | }}} |
| 72 | }}} |
| 73 | |
| 74 | == Recent Changes == |
| 75 | |
| 76 | [[ChangeLog(tablesorterplugin, 3)]] |
| 77 | |
| 78 | == Author/Contributors == |
| 79 | |
| 80 | '''Author:''' [wiki:psuter] [[BR]] |
| 81 | '''Maintainer:''' [wiki:psuter] [[BR]] |
| 82 | '''Contributors:''' |