I posted this question in ArcGIS JS forum and it was suggested to ask it here.
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.
Solved! Go to Solution.
Yeah a dismissible panel is your best bet. Here is a codepen:
https://codepen.io/benesri/pen/zYRGLNY?editors=1000
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.
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.
Yeah a dismissible panel is your best bet. Here is a codepen:
https://codepen.io/benesri/pen/zYRGLNY?editors=1000