[dojo-contributors] My attempt at a lightweight mobile-ready grid/table
bill at dojotoolkit.org
Fri Oct 8 03:20:58 EDT 2010
It's working nicely.
What does "persistent DOM nodes" mean? I see you create new <tr> nodes
for each row, and presumably throw away old <tr> nodes when they scroll
too far out of view, maybe you are talking about when a row's values change?
On 10/7/10 5:08 AM, Kris Zyp wrote:
> I've been wanting to have a decent widget to natively run and test
> against the new dojo object store API, and having been frustrated with
> the DataGrid, and also seeing the interest in a mobile-ready
> plugin-based grid, I thought it'd try to put some together from a clean
> slate. So here is my attempt at next generation widget/grid:
> http://github.com/kriszyp/objectable (runs in dojox.table on latest trunk)
> And the demo of it:
> Key aspects:
> * Natively uses Dojo Object Store API - Directly uses the store API,
> including result set observation (the new notification events), for
> proper rearrangement of rows in response to data changes.
> * Mobile ready - Handles touch events for scrolling, check out the demo
> on your iPhone.
> * Extremely easy to write plugins. By using persistent DOM nodes, the
> Tree, Selection, and Editing are all written as very simple plugins in
> less then 100 LOC each.
> * Lightweight - Less than 20K src, probably be 3-4K gzipped/minified.
> * Very fast
> * Very few dependencies - Optimized build could probably contain
> stripped down dojo.js and everything needed under 20-30K gzipped
> * Includes support for key features from the DataGrid:
> ** Virtual Paging
> ** Sorting
> ** Selection
> ** Tree/hierarchical expansion (based on the hierarchical extensions to
> the object store)
> ** Editing
> ** Notifications
> Anyway, it still rough, I haven't really spent that much time on it, but
> I think it is nice clean, simple, and extensible design.
> dojo-contributors mailing list
> dojo-contributors at mail.dojotoolkit.org
More information about the dojo-contributors