Hello, I've recently started using the AdaptiveMenu (which is a cool component BTW), and I just realized the menuItem.click handler is actually different in its arguments when an item is actually a menuItem vs when it's rendered as a ToolStripButton.
Is it actually intended to work this way?
So that, if I need a reference to the menu object, I must write code like this:
Is it actually intended to work this way?
So that, if I need a reference to the menu object, I must write code like this:
Code:
click: function(target, item, menu) { let theMenu = menu ? menu.creator : this.getParentCanvas(); isc.logEcho(theMenu); }
Comment