By the way, I just noticed it was possible to use empty properties to get the
whole model... So this kind of code will also work :)

c.setDelegate({bindItem: function(controller, item, index) 
{
        controller.bindProperty("", "label", {converter: function(data) 
        {
                if (data.getLabel) return data.getLabel();
                return data.getData();
        }}, item, index);
        
        controller.bindProperty("data", "model", null, item, index);        
}});

Regards,

BenoƮt
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/RESOLVED-How-to-declare-conditionnal-bindProperty-tp5753053p5754875.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