Submit your widget

Sort And Filter Tables(mootools)

Created 14 years ago   Views 15477   downloads 3008    Author samuelbirch
Sort And Filter Tables(mootools)
View DemoDownload
115
Share |

Features

  1.           1.sort on numbers, strings, dates and currency
  2.           2.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).