MattRudy / PowerBI-ThemeTemplates

JSON Templates for assembling Power BI Themes
The Unlicense
236 stars 84 forks source link

visualStyles/slicer/*/*/mode property doesn't work #163

Closed pabloabap closed 2 months ago

pabloabap commented 1 year ago

Hi team,

I am setting my first JSON theme and I tried to configure the default mode of slicers set to "Dropdown" but it doesn't work. Although I imported the theme to one report when I add a slicer it has different predefined style based on "data type" of the field. For example, for "Text" data type Slicer Style is "Vertical List" and for "Whole Number" is "Between".

Below you can see the code used if it helps:

 "visualStyles": {
        "slicer": {
            "*": {
                "*": [
                    {
                        "mode": "Dropdown",               
                        "singleSelect": true
                    }
                ],
                "searchBox": [
                    {
                        "background":{
                            "solid": {
                                "color": "#3700FF"
                            }
                        }
                    }
                ]

                }

        }
    }

If any extra information is needed I am available.

Thanks in advance for your help and congratulations for the development of this amazing feature :)

github-actions[bot] commented 1 year ago

Hey @pabloabap! Thanks for opening your first issue. We appreciate your contribution to this project! One of our project maintainers will review this soon.