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.
Solved! Go to Solution.
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 @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.
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!