Hello, I have just started out with qooxdoo. Seems like a really nice framework! Great work! Unfortunately, I'm stuck with a problem now. One that I can't find the solution to in the documentation. I've been reading through the documentation the last couple of days.
I'm using qooxdoo desktop. I want to load data into a tree, and modify the icons, set a context menu to each item and be able to give other components some of the data. And also be able to select a item in the tree from an id(internal id from the webservice that is exposed in the model) and expand the tree so it's visible. I'm using the tree controller to load the data. I have written some example code(http://tinyurl.com/plhuszt) that I hope will show what I want to do. My questions are written as comments in the example, but a short gist of it follows: * What is the proper way of selecting a item in the tree and expanding it so it's visible? Eg. from a query parameter with the id. * What is the proper way of setting an icon from a value of a propery in the model? setIconPath/Options or in the delegate? * What is the proper way of setting context dependent context menues to items? Eg. different types of items should have different context menues. * How should I communicate my data from the model to other classes? Eg. context menu opens a window with a file. Should load file contents using the id. * Do I use bindItem for "storing" my model data in the tree. Or is that the wrong way? If there is anything else I can do to ask better questions, please tell me! Hopefully there is someone who can point me in the right direction. Keep up the good work! Regards, Fredrik -- View this message in context: http://qooxdoo.678.n2.nabble.com/Using-model-data-in-tree-to-create-context-menu-etc-tp7584277.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
