Forum Discussion
Power BI Custom Visual Storing Properties/Format Data
- 8 years ago
Inforgraphic Designer keeps advanced settings in Format Panel like other options but such advanced options are hidden for users.
Settings are kept as a JSON string.
To keep settings in Format Panel and hide it for user you should:
- Define properties in objects property of capabilities.json (Sankey example)
- Parse properties from a dataView for each update to restore the desired state of a custom visual
- Do not enumerate such properties in enumerateObjectInstances
- To keep settings your visual should call persistProperties method (Sankey example)
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- 7 years ago
Just make you div transparent to inherit background color of parent element.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Inforgraphic Designer keeps advanced settings in Format Panel like other options but such advanced options are hidden for users.
Settings are kept as a JSON string.
To keep settings in Format Panel and hide it for user you should:
- Define properties in objects property of capabilities.json (Sankey example)
- Parse properties from a dataView for each update to restore the desired state of a custom visual
- Do not enumerate such properties in enumerateObjectInstances
- To keep settings your visual should call persistProperties method (Sankey example)
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
So, we couldn't able to access the pre-defined format options data from the custom visuals right? If wrong please correct me.
Let us assume, we have a custom visual for that we need to access default format data properties value of Title Text or background. Is it possible to access those values from our custom visuals?
Please refer the screenshot,
Thanks In Advance.
- v-viig7 years agoCommunity Champion
Predefined Format Panel groups such as Title and Background are not available for Custom Visuals.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- Anonymous7 years agoNot applicable
Okay. So we couldn't able to access those values from our custom visuals.
- v-viig7 years agoCommunity Champion
Right. It is not possible.
Why do you need these options?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals