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.


------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to