Select to view content in your preferred language

Automatically close a widget when opening another one

4867
11
Jump to solution
11-30-2017 05:51 AM
HlynurIngólfsson
New Contributor III

Hello.

Making an app with widgets like search and basemapToggle in API 4x.

All my widgets are being minimized by using the "Exapand" widget, my problem is that i need to close a widget before I open another one, otherwise both widgets stay open and overlap each other (as seen on attached png):

So instead of this happening I would actually want one widget to close automatically when I open another one, in this case the search widget to automatically close when I open the basemapToggle one (and wise versa)

Does anyone have some good solutions for me regarding this?

11 Replies
ToddGurnee
New Contributor III

With watchUtils being deprecated in 4.24, I'd be very interested to see how this solution can be updated to utilize reactiveUtils.

0 Kudos
ToddGurnee
New Contributor III
0 Kudos