deldersveld / PowerBI-ThemeTemplates

Snippets for assembling Power BI Themes
The Unlicense
460 stars 208 forks source link

Visual Header Defaults in JSON #66

Open Perri29 opened 3 years ago

Perri29 commented 3 years ago

I need help to format the visual headers for slicers in my JSON theme; I need them to default to off but only for slicers.

MattRudy commented 3 years ago

@Perri29 - This has been integrated into the new repository as part of the latest PR! https://github.com/MattRudy/PowerBI-ThemeTemplates

MattRudy commented 3 years ago

Hey @perri29 -

This can be accomplished with a template like the one below:

{
    "name": "SlicersWithoutVisualHeaders",
    "visualStyles": {
        "*": {
                "*": {}
        },
        "slicer": {
            "*": {
                "visualHeader": [{
                    "show": false
                }]
            }
        }
    }
}

You can find a universal sample to disable visual headers for all visuals or any visual here: https://github.com/MattRudy/PowerBIThemeSolutions/blob/main/src/HideVisualHeaders.json

Perri29 commented 3 years ago

@MattRudy Thanks for the assistance on this.