ok, forget the question, I see the reason:
the ContextmenuHandler is a replacement for the ContextMenu, not some
kind of filter for an existing one.
Am 29.11.2012 16:16, schrieb Michael:
>
> I wanted to add some data to a table contextmenu like this:
>
> contextMenu()
> {
> var menu = new ....Menu();
>
> //either:
> menu._mystuff = "hi";
> // or:
> menu.setUserData("mystuff", "hi");
>
> return menu;
> }
>
> and then ask about it in the ContextMenuHandler:
> function(col,row,table,model,menu)
> {
>
> var t = menu.getUserData("mystuff");
> //or
> var x = menu._mystuff;
>
> }
>
>
>
> But this doesn't work, I get:
> Cannot convert 'menu.getUserData("mystuff")' to object
>
> Why?
>
> cheers,
> Michael
>
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> VERIFY Test and improve your parallel project with help from experts
> and peers. http://goparallel.sourceforge.net
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
VERIFY Test and improve your parallel project with help from experts
and peers. http://goparallel.sourceforge.net
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel