phatfusion
javascript and flash development.
sortableTable
version 1.4
sort and filter tables.
example
ID |
Firstname |
Lastname |
Department |
Start Date |
1 |
Sam |
Birch |
Programming |
01/06/00 |
2 |
George |
Lo |
Support |
01/07/99 |
3 |
kevin |
Walker |
Programming |
01/06/05 |
4 |
Peter |
Aland |
Project Management |
23/10/06 |
5 |
Rachel |
Dickinson |
Design |
20/01/05 |
6 |
John |
Tsang |
Support |
05/10/05 |
|
|
|
|
|
features
- sort on numbers, strings, dates and currency
- filtering on columns
usage
var myTable = new sortableTable('myTable', {
overCls: 'over',
onClick: function(){alert(this.id)}
});
Data types:
- number
- 123.45
- string
- firstname
- date
- YYYY-MM-DD, DD/MM/YY[YY], DD-MM-YY[YY]
- currency
- £100.00 (any currency as long as its a single symbol)
options
- overCls
- the name of the class added when the mouse is over the tr.
- onClick
- the name of the function to call on the onClick event.
- sortOn
- the number of the column to initially sort on (zero based).
- sortBy
- the direction of the sort (ASC / DESC) (default: ASC).
- filterHide
- whether or not to show just the results. (default: true).
browser compatibility
- Firefox 2 (mac / pc)
- IE 7
- IE 6
- Safari (mac)
requirements
downloads