ArcGIS JS API 4 Search Widget buttonmode?

257
2
Jump to solution
12-01-2020 07:33 PM
rcwisc
by
New Contributor II

Is there a way to make the search widget bar collapsed like a button by default, and then it expands into a search bar when you click it in ArcGIS API 4. It seems like version 3 has something like this but I can't find it in 4. 

 

 

0 Kudos
1 Solution

Accepted Solutions
GavinRehkemper
Esri Contributor

One option is to use the Search widget within the Expand Widget.

expand.gif

Demo: https://codepen.io/gavinr/pen/NWRGaGw?editors=0010

 

View solution in original post

Tags (1)
2 Replies
GavinRehkemper
Esri Contributor

One option is to use the Search widget within the Expand Widget.

expand.gif

Demo: https://codepen.io/gavinr/pen/NWRGaGw?editors=0010

 

View solution in original post

Tags (1)
rcwisc
by
New Contributor II

Very nice, thank you. 

0 Kudos