getRootContextMenu : function()
{
var menu = new qx.ui.menu.Menu();
var sub = new qx.ui.menu.Menu();
for (var i=0; i<5; i++) {
var subbut = new qx.ui.menu.Button("Folder " + (i+1));
subbut.setUserData('st', i);
subbut.addListener("execute", function(e) {
alert(this.setUserData('st'));
});
sub.add(subbut);
}
menu.add(new qx.ui.menu.Button("move to", null, null, sub));
menu.add(new qx.ui.menu.Separator());
return menu;
}
Please suggest me any alternate.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/problem-while-adding-button-Listener-in-loop-tp5939395p5939395.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel