Re: [qooxdoo-devel] Access tree node model in configureItem delegate (with patch)

2011-05-09 Thread Martin Wittemann
Hey, > You're right of course! > > I didn't think of using bindItem, but it's indeed the way to do this. > Took me a little time to realize that I also needed to call > bindDefaultProperties (turned out to be a case of RTFM ;) ), but it > works like a charm now: > > { > bindItem : function(

Re: [qooxdoo-devel] Access tree node model in configureItem delegate (with patch)

2011-05-09 Thread Marc Puts
Hi Martin, You're right of course! I didn't think of using bindItem, but it's indeed the way to do this. Took me a little time to realize that I also needed to call bindDefaultProperties (turned out to be a case of RTFM ;) ), but it works like a charm now: { bindItem : function(controller,

Re: [qooxdoo-devel] Access tree node model in configureItem delegate (with patch)

2011-05-09 Thread Martin Wittemann
Hey, > I think this one is for Martin, as author of the Tree controller. Exactly. :) > I'm using a Tree controller to populate a Tree. I need to attach a > context menu to some tree nodes, based on a property in the model of > that tree node. > > I'm trying to do this by using a configureItem

[qooxdoo-devel] Access tree node model in configureItem delegate (with patch)

2011-05-08 Thread Marc Puts
Hi, I think this one is for Martin, as author of the Tree controller. I'm using a Tree controller to populate a Tree. I need to attach a context menu to some tree nodes, based on a property in the model of that tree node. I'm trying to do this by using a configureItem delegate: { configur