Forum Discussion
Custom Object Drowdown
- 9 years ago
Anonymous,
You may refer to capabilities.json of Dual KPI and view its source code at https://github.com/Microsoft/powerbi-visuals-dualkpi. As for the spec, see https://github.com/Microsoft/PowerBI-visuals-tools/blob/164f80e7e269f56dbbfd8009e4d860c7c03b4f07/templates/visuals/.api/v1.6.0/schema.capabilities.json.
PBIcustomizer There's no way to use dynamic drop-downs.
satishr No, there isn't. You should specify all of font for the dropdown.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thanks for the reply v-viig. Can you let me know how the default Font family dropdown for Title works? It lists few fonts in its drop-down and each font value is displayed in its own font.
- v-viig8 years agoCommunity Champion
Font Family dropdown is actually a common dropdown that can be implemented by using enumeration property (example).
After that, you should apply a proper Font Family to DOM element that you need.
Please let me know if you have any further questions.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- satishr8 years agoHelper III
v-viig Got it. Thank you. Can you provide me the actual font family enumeration with the values? I don't want to type each font name and later test each of them for any errors. Thanks!
- v-viig8 years agoCommunity Champion
Power BI doesn't provide any fonts for custom visuals.
You should include fonts that you want using CSS and list font in the enumeration that your visual supports.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals