Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago

Default action activated in JSON theme file

I would like to have a default action type activated in the action button. I would like the default activated action to be "Bookmark" and set to "None":


This is particularly important seeing as the hover fill colour does not show if there is not an action activated :-§

My action button code is currently:

"actionButton": {
"*": {
"shape": [
{
"$id": "default",
"tileShape": "rectangle",
"roundEdge": 20
}
],
"icon": [
{
"$id": "default",
"rightMargin": 2,
"leftMargin": 8,
"topMargin": 2,
"bottomMargin": 2,
"iconSize": 16
},
{
"show": true
}
],
"text": [
{
"$id": "default",
"show": true,
"fontColor": {
"solid": {
"color": "#7F7E79"
}
}
},
{
"$id": "hover",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
}
},
{
"$id": "selected",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
}
},
{
"show": true
}
],
"outline": [

{
"show": false
}
],
"fill": [
{
"$id": "default",
"fillColor": {
"solid": {
"color": "#D8D8D3"
}
},
"transparency": 0
},
{
"$id": "hover",
"fillColor": {
"solid": {
"color": "#7F7E79"
}
}
},
{
"$id": "press",
"fillColor": {
"solid": {
"color": "#11387F"
}
}
},
{
"$id": "selected",
"fillColor": {
"solid": {
"color": "#11387F"
}
}
},
{
"$id": "applied",
"fillColor": {
"solid": {
"color": "#11387F"
}
}
},
{
"show": true
}
],
"title": [
{
"show": false,
"fontColor": {
"solid": {
"color": "#0B1128"
}
},
"background": {
"solid": {
"color": "#FFFFFF00"
}
}
}
],
"background": [
{
"show": false,
"color": {
"solid": {
"color": "#D8D8D3"
}
},
"transparency": 0
}
],
"border": [
{
"color": {
"solid": {
"color": "#EEEEEC"
}
},
"show": false,
"roundEdge": 4
}
]
}
},

 

Thanks in advance 🙂

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    Could you please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

    How to Get Your Question Answered Quickly - Microsoft Fabric Community

    How to provide sample data in the Power BI Forum

     

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

     

    Best regards,

    Lucy Chen

  • Anonymous's avatar
    Anonymous
    Not applicable

    The expected result is these settings per default when I insert a button:

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous ,

      Thank you for your kind reply!

      Do you need a new bookmark type button?

      If I have misunderstood you, please let me know promptly, and if you have any other confused, please feel free to contact us!

      Best regards.

      Lucy Chen

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