[qooxdoo-devel] Button event handling question
Brought to you by:
ecker,
martinwittemann
From: nislim <aer...@gm...> - 2008-12-31 12:11:46
|
I want to load buttons from an RPC-Backend, this goes fine. But i don't know how to retrieve the name or the value of the button. This is the code i use: for (var in list){ var Button = new qx.ui.menu.Button(list[var],null, this.debugButton); var ButtonAction = function(e) { this.createObjectWindow(ButtonName); }; AppButton.addListener("click",AppAction, this); menuBar.add(AppButton); } I cant get buttonname, i tried: 1. list[var] but that gave me the name of the last in the list. 2. e.getName but that didn't gave me the name of the button but the name of the Event. -- View this message in context: http://n2.nabble.com/Button-event-handling-question-tp2095891p2095891.html Sent from the qooxdoo mailing list archive at Nabble.com. |