Dark Templar
Dark Templar

Reputation: 1295

Qooxdoo TreeVirtual ContextMenu

How can I implement a ContextMenu on a column in TreeeVirtual in Qooxdoo? I found an example for table: table.setContextMenuHandler(2, this._contextMenuHandlerNull); but it does not work in treevirtual case.

Upvotes: 1

Views: 312

Answers (1)

Martin Wittemann
Martin Wittemann

Reputation: 2116

You should make sure that you include the Context menu mixin in the table class:

qx.Class.include(qx.ui.table.Table, qx.ui.table.MTableContextMenu);

As the tree virtual extend the table, the context menu will be available after you have included the mixin. Take a look at the following sample to see it running:

http://tinyurl.com/7nxm3uc

Upvotes: 0

Related Questions