Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Context menu in mobile is not working

Hello all,            The recent requirements for a PowerBI custom visual is to have a context-menu to deploy it to the app source. We did implement the context menu as per guide lines and we are ab...
  • dm-p's avatar
    5 years ago

    Hi Anonymous

    If you've bound the event using contextmenu, then according to the docs, there isn't a corresponding event for mobile. Their suggestion is to use an external library, which I presume means powerbi-visuals-utils-interactivityutils. This library has a method for handling the context menu, although I've just skimmed the source code and it still binds to that event anyway, so your suspicions may be correct.

    Deployment to AppSource with this functionality should be fine. I've submitted an uncertified visual that does this, and have recently had another visual pass certification (if you're going that far) using this approach too. However, if you are concerned about getting stuck somewhere in the process and want to ensure everything's right beforehand, you'll be better contacting  [email protected] for specific advice as they'll be the ones reviewing the visual during the process and have been very helpful to me in the past when I've had similar questions.

    Good luck,

    Daniel