Wiki
Clone wikijSimple / Home
jSimple
jSimple is a plug in developed by William Rivera for creating sortable paginating tables using the jQuery frame work. In order to use this code you will need to use the jquery library. Currently the Demos in this page use version 1.2.6.
features
- Table generation
- Pagination option
- Table sorting based on DATA
- Custom sorting support
- Preserved pagination/sort
Support
- IE6+ (image support needs included images for 6+7)
- Firefox
- Safari
- Chrome
- Opera
Here's an example of some code:
var simple = [
{
"FirstName": "DAVID",
"LastName": "BRANDES",
"Registrater Date": "6/9/2010"
},
{
"FirstName": "DAVID",
"LastName": "TABBY",
"Registrater Date": "7/2/2010"
}
];
$('#table1').Simplify({limit:3,data:simple});
Options
Name | Type | Description |
data | Object or Array | the data to show in a table either using simple or advanced format |
limit | int [optional] | the amount of rows to show on a page, defaults to 20 |
paginate | Boolean [optional] | paginate automatically defaults to true |
makeSortable | Boolean [optional] | make it sortable automatically defaults to true |
Updated