Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
SJim
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
Anonymous
Not applicable

Hi,

 

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

 

Thanks in advance,

 

Chantelle

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.