Joomla sorting table plugin, module, extension, component. Sorting, paging, filtering table in your Joomla article.
Makes any table sortable with single-column, multi-column sorting and paging. This plugin is also a part of ARI Smart Content: DataTable Pack
Features:
- Converts any table to sortable table
- Sorting, multi-column sorting
- Support secondary "hidden" sorting (e.g., maintain alphabetical sort when sorting on other criteria)
- Paging support
- Support for ROWSPAN and COLSPAN on TH elements
- Parsers for sorting text, URIs, integers, currency, floats, IP addresses, dates (ISO, long and short formats), time
- Zebra effect
Example:
| IP |
Letter |
Date |
| 127.0.0.1 |
A |
10/10/2008 |
| 163.7.68.1 |
C |
11/5/2007 |
| 10.01.89.107 |
M |
5/10/2008 |
| 1.1.16.156 |
B |
8/12/2005 |
| 101.45.68.90 |
H |
12/12/2000 |
Usage:
{arijtablesorter defaultSorting="1:DESC"}
<table>
<thead>
<tr>
<th>column1</th>
<th>column2</th>
<th>column3</th>
</tr>
</thead>
<tbody>
<tr>
<td>content1</td>
<td>content2</td>
<td>content3</td>
</tr>
</tbody>
</table>
{/arijtablesorter}
<thead> tag is mandatory. It is used to create column headers.
Parameters:
- paging – allow paging or not. Values: true, false
- pageSize – size of page. Values: number
- pageList – dropdown contains values that indicate how many pages to show. Example: 10,20,30. Values: comma separated numbers
- pageSeparator – separator for paging numbers. Example: 1/5. Values: any string
- showFirst - show first paging button. Values: true, false
- showPrev - show previous paging button. Values: true, false
- showNext - show next paging button. Values: true, false
- showLast - show last paging button. Values: true, false
- widthFixed – column width fixed or not. Values: true, false
- zebra – use zebra effect or not. Values: true, false
- defaultSorting - default table sorting. Value: the string of following type: defaultSorting="N1:SORT,N2:SORT,..." where N1, N2 - column index to sort by (zero-based) and SORT - sorting direction (DESC, ASC), ASC is default. Example: defaultSorting="0:DESC,1:ASC,..."
- sorting - Sorting enable or disable. Value: true, false
- notSortableCols - Indicate which colums will not be sortable. Value: the string of following type: notSortableCols="N1,N2,..." where N1, N2 - column index to sort by (zero-based) Example: notSortableCols="0,2,..."
- sorters - Indicate sorting method for selected colums. Value: the string of following type: sorters="N1:sortingMethod,N2:sortingMethod,..." where N1, N2 - column index to sort by (zero-based) Example: sorters="0:percent,2:currency,...". You can use the following sorting methods: text,digit,currency,ipAddress,url,isoDate,percent,usLongDate,shortDate,time;
- textExtraction - Defines which method is used to extract data from a table cell for sorting. Built-in options include "simple" and "complex". Use complex if you have data marked up inside of a table cell like: <td><strong><em>123 Column</em></strong></td>. Values: simple, complex;
|