Derrell Lipman | 9 Feb 21:50

Creating an extended ListItem class

I'm trying to create a replacement ListItem class, which I'm specifying with the createItem element of the delegate map. I've almost got it working, but I am forced to specifically call two of the properties "label" and "icon" instead of "title" and "image1" that I'd like for them to be, and I can't figure out how to do the binding for any other properties in the replacement class.


This is a stripped-down playground example where I have only three fields being displayed: title (which must be called label), image1 (which must be called icon), and numLikes. As you can see, the numLikes field displays its initial value ("wrong") instead of the value in the model. I'm probably missing a single line of code that would add all of the proper bindings, but I can't figure out what it is. Help greatly appreciated!

Here's the playground sample: http://tinyurl.com/78tfzdz

Thanks!

Derrell

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Gmane