2009/3/25 Jim Hunter <[email protected]>
> I have been poking through the source code and don't see an answer to this
> question: Is there a way, via code, to display the Column Visibility Menu of
> a table? I want to have a Context menu item that displays the menu, but ran
> dry when looking for a way to do it.
Via inspection... If you look at Table.js, you'll see that in
_createChildControlImpl(), it creates an object generated by
this.getNewColumnMenu()(); which is calling a function it retrieves from the
newColumnMenu property. The default function in that property yields a new
qx.ui.table.columnmenu.Button which extends qx.ui.form.MenuButton which has
an open() method.
Therefore, you should be able to do this to programatically open the column
visibility menu:
table.getChildControl("column-button").open();
QED.
Derrell
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel