Gideon Fung on 27 Feb 2019 03:03:14
Currently there seems to be no way to customize text boxes and buttons using the json template file, even though they are customizable in the GUI. Please add this ability and update the documentation so we know what the visualName would be for them.
- Comments (8)
RE: Allow json template formatting for text box and button
I actually was able to change it using the example code that I found checking out Microsoft's documentation (https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#import-custom-report-theme-files)
I actually changed the label font and then then I found the font already changed to the one I set in the theme json file.
code:
{
"name": "Custom Theme",
"textClasses": {
"callout": {
"fontSize": 45,
"fontFace": "DIN",
"color": "#252423"
},
"title": {
"fontSize": 12,
"fontFace": "DIN",
"color": "#252423"
},
"header": {
"fontSize": 12,
"fontFace": "Segoe UI Semibold",
"color": "#252423"
},
"label": {
"fontSize": 10,
"fontFace": "Segoe UI",
"color": "#252423"
}
}
}
RE: Allow json template formatting for text box and button
Ability to customize font for button via JSON template has to be supported. Extremely important when corporate theme need to be complied. Appreciate if this can be implemented the soonest.
RE: Allow json template formatting for text box and button
This would be nice
RE: Allow json template formatting for text box and button
text boxes and buttons are integral to building a fully functional reporting interface. Not being able to control the font via the theme hinders being able to offer the user alternate themes for the same report (e.g. light theme and dark theme depending on context)
RE: Allow json template formatting for text box and button
Quite unbelievable, a must have.
RE: Allow json template formatting for text box and button
Here are some basic changes that can be made. Tried to change the font, but could not get it to work though.
https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Textbox.json
RE: Allow json template formatting for text box and button
This is needed to have coherent reports :)
RE: Allow json template formatting for text box and button
we need this!