Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #46
    Originally posted by Isomorphic View Post
    hi Claudio - thanks for the reminder, we'll revisit the remaining issues and get back to you.
    Hello, any news about this?

    Comment


      #47
      Originally posted by claudiobosticco View Post
      another 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?
      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 claudiobosticco View Post
      Regarding the enableIf, dynamicTitle and dynamicIcon, are they supposed to work only when the MenuItems aren't buttons?
      These properties are not supported outside of MenuItems right now but we are considering supporting them in the future.

      Comment


        #48
        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.
        thanks for the hint, maybe a note in the documentation would help as I thought I could call it just with item.getAdaptiveMenu()

        Originally posted by Isomorphic View Post
        These properties are not supported outside of MenuItems right now but we are considering supporting them in the future.
        thanks for considering

        Comment

        Working...
        X