How do I collapse the search widget in 4.x? I would like it to be like the search widget in 3.x, where it starts as a square button only, and expands out to show the entire widget once the user clicks on it.
Hi @MattStayner ,
You could try and implement the Expand funtion as shown in the following config page.(https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html)
There's a sample showcasing the implementaton of this functionality on a Layer List widget.
This should work with the search widget in 4.x as well.
You can use the Expand widget:
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html
Hi @IGCMCGIS ,
Yes, throwing that in an Expand widget works great! It looks good too (see below).
Thanks!
Glad it works @MattStayner . Looks good too!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.