Hello,

I've a little problem with the binding features - I guess Martin will be the
best candidate to answer but anybody has the solution, it's of course
welcome :)

I've a model with partial datas like in this example (and bound to a
combobox via the listController):

[
 {data:""},
 {data:"",label:"** additional datas **"},
 {data:""},
 {data:""},
 ...
]

The problem is that, in my delegate object I'd like to do this kind of
operation but I don't know how to code it:

listController.setDelegate({bindItem: function(controller, item, index) 
{
        /** if label exists in the model, use label, else use datas **/ 
        controller.bindProperty(..., "label", null, item, index);
        
        controller.bindProperty("datas", "model", null, item, index);        
}});

Any idea ?

Best,

BenoƮt.

-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-to-tryBindProperty-tp5753053p5753053.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to