Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone
I'm developing a custom visual for power bi, and I have a specific requirement: I would like to change the visual's title settings from code. I'm talking about these settings here, that are common to all visuals:
Is there a way to change these settings from the visual's code? I've tried manipulating the HTML directly, but unfortunately the title is outside the visual's sandbox, so I can't change it from my code.
Is there any other way to manipulate the title, other than manually changing the settings in the properties panel?
Solved! Go to Solution.
This is how I would approach - there are no visual APIs for any of properties that affect the visual "container" (iframe), as opposed to the "content".
For reference, the properties you cannot enumerate or access are anything you can see under the 'General' category of the new Visualization pane layout:
If you need any functionality for these property menus, you will need to make a request for the visuals team to create an API method for what you want to do.
Regards,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
You can use a measure for your title.
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-format-visual-titles
That's not what I asked...
This is how I would approach - there are no visual APIs for any of properties that affect the visual "container" (iframe), as opposed to the "content".
For reference, the properties you cannot enumerate or access are anything you can see under the 'General' category of the new Visualization pane layout:
If you need any functionality for these property menus, you will need to make a request for the visuals team to create an API method for what you want to do.
Regards,
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Ok, so apparently it can't be done. I suspected that but I needed confirmation, thank you for providing it.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
2 | |
1 | |
1 | |
1 |