cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SJim Frequent Visitor
Frequent Visitor

Make slicer 'list' or 'dropdown' with Json custom theme?

Hello, 

 

Today I am creating a custom theme with Json language. Does anyone know how to set slicer as a list by default with Json? Closest example I could find is underneath. Thanks in advance,

 

Sjim.

 

{
	"name": "SlicerTemplate",
	"visualStyles": {
		"slicer": {
			"*": {
				"general": [{
					"outlineColor": { "solid": { "color": "#444444"}},
					"outlineWeight": 1,
					"orientation": "vertical",
					"responsive": true
				}],
				"data": [{
					"mode": "Basic",
					"relativeRange": "",
					"relativePeriod": ""
				}],
				"selection": [{
					"selectAllCheckboxEnabled": false,
					"singleSelect": true
				}],
				"header": [{
					"show": true,
					"fontColor": { "solid": { "color": "#000000"}},
					"background": { "solid": { "color": ""}},
					"outline": "None",
					"textSize": 10,
					"fontFamily": "Segoe UI"
				}],
				"items": [{
					"fontColor": { "solid": { "color": "#000000"}},
					"background": { "solid": { "color": ""}},
					"outline": "None",
					"textSize": 11,
					"fontFamily": "Segoe UI"
				}]
			}
		}
	}
}  

 

1 REPLY 1
cvandalen Frequent Visitor
Frequent Visitor

Re: Make slider list or dropdown with Json??

Hi,

 

I have the same question but want to default it to dropdown.

 

Thanks in advance,

 

Chantelle

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Kudoed Authors