Close button for Basemap widget

505
3
Jump to solution
05-04-2022 01:12 PM
LefterisKoumis
Occasional Contributor III

I posted this question in ArcGIS JS forum and it was suggested to ask it here.

https://community.esri.com/t5/arcgis-api-for-javascript-questions/close-button-for-basemap-widget/m-...

All ESRI widgets, like layerlist , basemaps, legend... lack a close button. The expand widget is not an option, if you place your widgets in a navigation bar and they are grouped together as it is shown below.

LefterisKoumis_0-1651695080372.png

 

1 Solution

Accepted Solutions
3 Replies
BenElan
Esri Contributor

If I'm following the question correctly, you want to put the JSAPI widgets in a container that has a close button? Did you try putting the widgets in a dismissible calcite-panel? I provided a code snippet in a different thread.

0 Kudos
LefterisKoumis
Occasional Contributor III

THat's correct. I mentioned in my posting to JS ArcGIS group that the only option I know is to use panel with the dismissible property. So, I was wandering if there is another option before I go that route. I guess the answer is no.

0 Kudos
BenElan
Esri Contributor