Select to view content in your preferred language

Dropdown menu workarounds

261
3
2 weeks ago
ConservationPlanner
New Contributor

I am building an app in experience builder which has a Map Layers widget with a corresponding webmap. The layers are organized into groups where there is one particular group (called Themes) that has three possible subgroups of layers only one of which I'd like to be turned on at a time. I can achieve this with radio buttons by making the Themes subgroups exclusive in the web map, but I'd like that particular dropdown to appear expanded when the app is loaded, so users can see the options for themes right away rather than having to open up the Themes group. I don't see that there is a way to do this. Is there some other widget I could use to simulate that experience? After some searching I see that there isn't a dropdown widget that I can use directly. 

0 Kudos
3 Replies
ShengdiZhang
Esri Regular Contributor

Hi @ConservationPlanner ,

Could you try the Accordion widget? 

To achieve a better effect, please follow the steps below:

1. In the Accordion widget settings, select the desired widget in "Expand items on loading"

2. Set both the Accordion widget and the inner widgets to Auto height

Regards,

Shengdi

0 Kudos
ConservationPlanner
New Contributor

Thanks @ShengdiZhang. I started to try Accordion, but I am not totally sure how to use is and I did not find the documentation very helpful. I think I am a bit confused about how to link the Accordion with the Map Layers widget for a start. I am not sure if that is how I should be doing it, or some other way. Should I populate the Accordion with List widgets, or Map Layer widgets?

0 Kudos
TimWestern
MVP Regular Contributor

You could in theory use a panel with a series of clearly named buttons for the layers also.


0 Kudos