Forum Discussion
WZorn
Helper III
5 years agoDialog Box for Custom Developed Visual?
I want a custom dialog box to display when a user clicks on an element within a visual. I found the following page: https://docs.microsoft.com/en-us/power-bi/developer/visuals/create-display-...
- 5 years ago
Hi WZorn,
I haven't personally used this functionality yet to assist in detail, but which version of powerbi-visuals-api is in your visual's package.json?
These interfaces are added in 3.7.0, so if this is older then you'll need to update this version, e.g. npm i [email protected] or @latest
Regards,
Daniel
WZorn
Helper III
5 years agoWell, that's a step in the right direction. I can see what's happening now.
When I run npm i powerbi-visuals-api@latest it installs version 3.8.2, but as soon as I execute pbiviz start, it reverts to 2.6.0.
WZorn
Helper III
5 years agoAH. The pbiviz.json still had the earlier version of the api referenced.
The line:
"apiVersion": "2.6.0"
needed to be changed to:
"apiVersion": "3.8.2",