The method that will be used to construct the menu, based on the data passed to the show method
Will show the actual menu
The event that triggers the context menu required to position the menu and also the menu is attached to event target
Optional
data: anyoptional, the menu will be constructed based on the function given to the construtor and the data passed in this method
Creates a context menu the - the function should return a list describing the menu The list should contain objects with text,icon,ghosted,func and subitems