Originally posted by Isomorphic
View Post
Announcement
Collapse
No announcement yet.
X
-
Originally posted by claudiobosticco View Postanother question about getAdaptiveMenu (): I see it returns correctly the "adaptiveMenuID" when the item is a ToolStripButton, but when it's a MenuItem, in the handlers there's 'menu' which actually is "adaptiveMenuID_menu", so I still have to use menu.creator. Is it intended to work like this?
Originally posted by claudiobosticco View PostRegarding the enableIf, dynamicTitle and dynamicIcon, are they supposed to work only when the MenuItems aren't buttons?
Comment
-
Originally posted by Isomorphic View Post
If we understand correctly, you are trying to use the 'menu' parameter of the click handler. Is this correct? That parameter does represent the actual menu holding the MenuItem, if any, but as you note, that's not the AdaptiveMenu. Instead, call this.getAdaptiveMenu() method in your handler to always return the adaptiveMenu instance whether it is shown in a button or a MenuItem.
Originally posted by Isomorphic View PostThese properties are not supported outside of MenuItems right now but we are considering supporting them in the future.
Comment
Comment