On Wed, Jun 2, 2010 at 14:34, Kenneth Tilton <kentil...@gmail.com> wrote:

>
> In this sequence, I see the menu does not get populated until the appear
> event.
>

case "column-button":
>  control = this.getNewColumnMenu()();
>  control.set({
>     focusable : false
>  });
>  // Create the initial menu too
>  var menu = control.factory("menu", { table : this });
>  // Add a listener to initialize the column menu when it becomes visible
>  menu.addListener(
>      "appear",
>       this._initColumnMenu,
>       this
>  );
>  break;
>
> Well, I guess it works. :)



That's correct. Each time the button is pressed, the menu is reinitialized.
This allows the application to add things to the menu or remove
automatically-added items, using the pre- and post- menu-creation hooks.


> I'll try simplifying my example as much as possible, but it is a remote
> table so I suspect that would be hard to add to the playground.
>

In that case, I suggest that the very first simplification you make is to
replace the remote table with a simple table with similar data to what
you're remote table is providing.

Derrell
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to