Context Menu "Caller"

Hi,

I have the following question.
When you have a context menu and you call it from several widgets is there a way to know which one of them is the caller to the menu.

For example:
I have couple of TreeGrids. I right click on the on one of them and the context menu is displayed. I choose “Delete” and all selected entries from this TreeGrid are removed.

Right now I’m doing this with two menus for each of the TreeGrids, but is there a property to know which one is the menu “Caller” so I can use a single menu for several widgets?

Thanks!

For a context menu, the “target” parameter of item.click points to the component that showed the context menu.

Lovely,

I missed that the click function can accept parameters as well. Now it works perfect for all widgets with just one context menu.

Thanks!