microsoft / powerbi-desktop-samples

Power BI Desktop sample files for the monthly release. Here you can find the PBIX files used in the monthly release videos.
MIT License
1.48k stars 892 forks source link

ActionButton States #59

Closed ethicus954 closed 5 months ago

ethicus954 commented 1 year ago

Couldn't really find the syntax for the different states for ActionButtons. I might overseen it, is this supported ?

I now use: `"actionButton": { "*": { "visualHeader": [{ "show": true }], "border": [{ "show": false }], "text":[{ "show":true }, { "$id": "default", "transparency": 0, "fontColor": {"solid":{"color":"#D91F43"}}, "fontFamily": "Arial", "bold": false }, { "$id": "hover", "transparency": 0, "fontColor": {"solid":{"color":"#ffffff"}}, "fontFamily": "Arial", "bold": false }, { "$id": "selected", "transparency": 0, "fontColor": {"solid":{"color":"#ffffff"}}, "fontFamily": "Arial", "bold": false }],

    }`
ethicus954 commented 1 year ago

So did figured out that the actionbutton has these states:

"$id": "default", "$id": "hover", "$id": "disabled",

The new page navigation and bookmark navigation uses: "$id": "default", "$id": "hover", "$id": "press", "$id": "selected",

ethicus954 commented 1 year ago

Press doesn't seems to work on ActionButton

yelper commented 5 months ago

$id hints have been added to recent schemas (April onward)