cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

actionButton Power BI JSON Theme

 
 
I am trying to put together a theme for the action button, but have not figured out the right syntax to set the Default State, On Hover, and On Press outline theme.  Below is what I have so far.  Anybody have an example?  Thanks.
 
        "actionButton": {
            "*": {
                "visualHeader": [{
                    "show": true
                }],
                "border": [{
                    "show": false
                }],
                "fill": [{
                    "show": true
                }],
                "outline": [
                    {
                        "show":true
                    }
                ]
            }
        }
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II
Resolver II

Re: actionButton Power BI JSON Theme

Success !!!!

 

"fill":
		[
			{
				"show":true
			},
			{
				"$id": "default",
				"transparency": 20,
				"fillColor": {"solid":{"color":"#111111"}}
			},
			{
				"$id": "hover",
				"transparency": 70,
				"fillColor": {"solid":{"color":"#555556"}}
			},
			{
				"$id": "selected",
				"transparency": 30,
				"fillColor": {"solid":{"color":"#ddd556"}}
			}
		]

View solution in original post

13 REPLIES 13
Highlighted
Resolver II
Resolver II

Re: actionButton Power BI JSON Theme

@jkerski 

 

Did you ever work out an answer to this?

I am trying to work this out atm.

 

Cheers

Highlighted
Frequent Visitor

Re: actionButton Power BI JSON Theme

Anybody got any help on this yet?

Highlighted
Resolver II
Resolver II

Re: actionButton Power BI JSON Theme

Not yet and I still haven't worked out a solution.
Highlighted
Frequent Visitor

Re: actionButton Power BI JSON Theme

Thanks for getting back to me, If I find anything I will post it back in here.

Highlighted
Frequent Visitor

Re: actionButton Power BI JSON Theme

I haven't figured it out yet either. I have been looking through the custom visual docs to see if I can find the schema. I will share if I find something.
Highlighted
Resolver II
Resolver II

Re: actionButton Power BI JSON Theme

I haven't had a chance to try this yet, but the theming support for filter pane may give some clues.
$id: "on hover"
Or something similar might work.
Highlighted
Resolver II
Resolver II

Re: actionButton Power BI JSON Theme

Success !!!!

 

"fill":
		[
			{
				"show":true
			},
			{
				"$id": "default",
				"transparency": 20,
				"fillColor": {"solid":{"color":"#111111"}}
			},
			{
				"$id": "hover",
				"transparency": 70,
				"fillColor": {"solid":{"color":"#555556"}}
			},
			{
				"$id": "selected",
				"transparency": 30,
				"fillColor": {"solid":{"color":"#ddd556"}}
			}
		]

View solution in original post

Highlighted
Frequent Visitor

Re: actionButton Power BI JSON Theme

Awesome. Thank you! Can finally complete the theme file on my project.
Highlighted
Resolver II
Resolver II

Re: actionButton Power BI JSON Theme

No worries @jkerski 

Put a solved flag on this thread in case someone else stumbles across this problem.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.