Widget visibility

209
4
Jump to solution
12-13-2019 05:13 AM
Highlighted
Esri Contributor

Hi ExB folks,

I am trying to make an ExB app that functions similar to the way the Storymap Shortlist behaves: when you click an item in the list, the List widget is replaced with a Feature Info widget. Closing the Feature Info widget replaces it with the List widget.  

However I cannot seem to find a way to control widget visibility, swap out one for another or implement this by other means. Is there a way to make this happen in an ExB app?

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Regular Contributor

Hi Ken,

You can use the Section widget with two views; one for the List widget and the other for the Feature Info widget. In the URL below, it illustrates these workflows using one of our shared templates:  https://experience.arcgis.com/stemapp/111ce2dc1c7d48e2ba7136db379a0744/page/home/?data_id=dataSource...

Thanks,

David

View solution in original post

Reply
0 Kudos
4 Replies
Highlighted
Esri Regular Contributor

Hi Ken,

You can use the Section widget with two views; one for the List widget and the other for the Feature Info widget. In the URL below, it illustrates these workflows using one of our shared templates:  https://experience.arcgis.com/stemapp/111ce2dc1c7d48e2ba7136db379a0744/page/home/?data_id=dataSource...

Thanks,

David

View solution in original post

Reply
0 Kudos
Highlighted
Esri Contributor

Thanks David, this is what I am looking for. However I cannot figure out from the finished example you shared how to enable it in my app. Can you provide more clues or a sample ExB project?

Thanks,

Ken

Reply
0 Kudos
Highlighted
Esri Contributor

David, nevermind. I figured out to set a link in the list that will switch to the feature info and added a button on the feature info to return to the list.

Thanks.

Reply
0 Kudos
Highlighted
Esri Regular Contributor

Sure no problem. You can select that template, which is called Place Explorer to create a new experience using that template. It is located under the shared tab in the templates. Basically what you need is a Section widget then you can add views. You would create two views, one for the List widget (view 1) and the other for the Feature Info widget (view2). Drag the List widget into view 1 and configure it. Switch to view 2 and drag the Feature Info widget into that view and configure it. If you open up the Place Explorer in the builder mode and in the Outline tab for the Food&Drink page you can see the layout. It uses a Column widget as the main container, then it uses a Sidebar widget (has two containers) for the Section, which contains the List widget and Feature Info widget and on the right-hand side for the Map. Let me know if you have any other questions. 

David

Reply
0 Kudos