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-p/1170788#M77221
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.
Yeah a dismissible panel is your best bet. Here is a codepen:
https://codepen.io/benesri/pen/zYRGLNY?editors=1000
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.
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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.