<table id=fancy-table>
<thead>
<tr><th>Column 1</th><th>Column 2</th><th>Column 3</th></tr>
</thead>
<tbody>
<tr><td>Item 1</td><td>Item 2</td><td>Item 3</td></tr>
</tbody>
</table>
<script>
new Grid("fancyTable", {
srcType : "html",
srcData : '#fancy-table',
allowGridResize : true,
allowColumnResize : true,
allowClientSideSorting : true,
allowSelections : true,
allowMultipleSelections : true,
showSelectionColumn : true,
fixedCols : 1
});
</script>
(This way, if JS is unsupported/the JS code breaks/JS is disabled/slow connection/etc., you'll still see the data)Trolling aside, I have to echo Taze's point: why not vanila HTML table? I'm asking since this is actually relevant to my interests and my latest project uses tables a lot. I don't think I'd use this yet because of the whole graceful degradation/progressive enhancement thing
http://www.zurb.com/playground/responsive-tables https://github.com/zurb/responsive-tables/
[0] - http://filamentgroup.com/lab/responsive_design_approach_for_...
When I sort by T, since they're all 0, I'd expect nothing to change, but the whole list inverts...
In general, it's very nice. I agree with TazeTSchnitzel's comment that it'd be awesome to have it pull data from a table, so that there's a fallback.
For sure, the invert part is not great though.
Edit: Found more info: http://stackoverflow.com/questions/3026281/array-sort-sortin...