Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
israelcevans
Advocate II
Advocate II

actionButton json parameters

Hello!

I'm currently working my way through the exciting adventure of theming a PowerBi file via json. My current roadblock is the apparent lack of documentation on the parameters inside the actionButton visual. 

 

the post by tmckenzie here: https://community.powerbi.com/t5/Developer/actionButton-Power-BI-JSON-Theme/m-p/694679/highlight/tru... was very helpful in getting me started with the fill attributes, but I haven't found anything equivalent for setting the fontColor or fontSize of the Button Text. Would anyone have any more leads on where I should look to figure this out? 

 

This cheatsheet is pretty handy: https://curbal.com/blog/power-bi-template-to-create-report-themes-with-the-json-template

This resource post is also pretty great: https://community.powerbi.com/t5/Desktop/Report-Theme-File-Advanced-JSON-Commands-Parameters/m-p/765...

 

 

Thank you for any assistance.

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@israelcevans ,

 

Please refer to the demo below:

https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for this @v-yuta-msft .

This definitely looks interesting. I haven't figured out a way to find out what json paremeters there are in an action button yet, but I'll keep playing with it.

 

I looked at a few other items and when I run "Get Visual Capabilities", the json that's returned doesn't seem to be as complete a listing as I've seen elsewhere in the links mentioned previously. Is this the right function to determine what's available to theme in a theme.json file?

 

Thanks,
~Israel

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.