Re:List.js
by atomical on Thursday October 20, 2011 @12:12PM
(#3135500)
Is there a similar library that can be used with tables? I like the function and this looks easy to use but my site uses tables over lists.
[ Parent
| on HN ]
Here's a demo of a very old version of our list http://quietcode.com/smartlist/ It's also on github but the code is so outdated it's not worth linking to. This demo has 4000 items to show its speed with medium datasets
Everything is created dynamically. The js that creates the demo is
userList = new QCSmartList({
dataUrl: 'users.json',
columns: [
{field:'email'},
{field:'surname'},
{field:'firstname', header:'Name'},
{field:'points'}
],
containerId: 'user-list',
name: 'users',
varName: 'userList'
});
If anyone's interested I can try and get some updated code/demo up later on today (it's only morning here)List.js works on most stuff. Tables, ul, divs, ol, spans, etc.
Example 2 at http://listjs.com/examples.html uses tables e.g
How does it compare to http://tablesorter.com/?
The Contact List example is a table
http://www.datatables.net/ is nice.