Forum Discussion
Gchandrukris
6 years agoHelper I
Button style
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. ...
- 6 years ago
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 } ] } },
Gordonlilj
6 years agoSolution Sage
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
}
]
}
},
Gchandrukris
6 years agoHelper I
in above script "action button" is the name of the button or its button property or something ?
- Gordonlilj6 years agoSolution Sage
actionButton is the name value for the button visual.
Below are some other examples