Skip to main content

Power BI

Needs Votes

Allow json template formatting for text box and button

Vote (117) Share
Gideon Fung's profile image

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)
Gideon Fung's profile image Profile Picture

RICARDO ONA on 07 Jul 2021 09:04:13

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"
}
}
}

Gideon Fung's profile image Profile Picture

Kelvin Tee on 27 Jan 2021 09:12:09

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.

Gideon Fung's profile image Profile Picture

Arjan on 06 Jul 2020 00:09:00

RE: Allow json template formatting for text box and button

This would be nice

Gideon Fung's profile image Profile Picture

Dave Collins on 06 Jul 2020 00:05:24

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)

Gideon Fung's profile image Profile Picture

Matt V on 06 Jul 2020 00:00:36

RE: Allow json template formatting for text box and button

Quite unbelievable, a must have.

Gideon Fung's profile image Profile Picture

Filip on 05 Jul 2020 23:57:08

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

Gideon Fung's profile image Profile Picture

Power BI User on 05 Jul 2020 23:43:10

RE: Allow json template formatting for text box and button

This is needed to have coherent reports :)

Gideon Fung's profile image Profile Picture

Noam Arnold on 05 Jul 2020 23:42:46

RE: Allow json template formatting for text box and button

we need this!