Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Mates,
In my PBIx file I have 50 pages and in each page i have 2 button. My client wanted to change the style of the button. i.e instead of rectangle they want to have oval / rounded rectangle. Is there any easy way to do this instead of going through all the 50 pages and change it ?
Thanks in advance
Solved! Go to Solution.
Hi,
You could speed it up a bit by using the format painter
Otherwise you could use custom themes to change the format on all buttons. The code below changes the outline edge among other things for example.
"actionButton": {
"*": {
"background": [ { "show": false } ],
"border": [
{
"show": false,
"color": { "solid": { "color": "#000000" } }
}
],
"outline": [
{
"show": true
},
{
"$id": "default",
"transparency": 20,
"weight": 4,
"roundEdge": 25
},
{
"$id": "hover",
"transparency": 20,
"weight": 4,
"roundEdge": 25
},
{
"$id": "selected",
"transparency": 20,
"weight": 4,
"roundEdge": 25
}
]
}
},
Hi,
You could speed it up a bit by using the format painter
Otherwise you could use custom themes to change the format on all buttons. The code below changes the outline edge among other things for example.
"actionButton": {
"*": {
"background": [ { "show": false } ],
"border": [
{
"show": false,
"color": { "solid": { "color": "#000000" } }
}
],
"outline": [
{
"show": true
},
{
"$id": "default",
"transparency": 20,
"weight": 4,
"roundEdge": 25
},
{
"$id": "hover",
"transparency": 20,
"weight": 4,
"roundEdge": 25
},
{
"$id": "selected",
"transparency": 20,
"weight": 4,
"roundEdge": 25
}
]
}
},
in above script "action button" is the name of the button or its button property or something ?
actionButton is the name value for the button visual.
Below are some other examples
OUCH!!!!
Sorry, that wasn't very helpful...
There isn't a simple way as far as I'm aware...
You might be able to save some time and work by changing the format of each button (in the Button format pane, turn the "Line" off, and add a "Border" with a radius) instead of creating new ones and having to establish the links for each. It's still going to be a real pain having to do that 100 times....
Proud to be a Super User!
Paul on Linkedin.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |