Hi.
Maybe I'm doing something wrong. It seems that the Expand widget is not working as expected in the API 4.7. I went to one of Esri's sandbox examples: ArcGIS API for JavaScript Sandbox
I've modified the code a little bit like so:


And when I click the  button I can see both Expand widgets added to the view. But, even though they are in the same group, I can have both widgets expanded at the same time.
 button I can see both Expand widgets added to the view. But, even though they are in the same group, I can have both widgets expanded at the same time.

I expect the lower Expand widget to collapse when I click the top one.
Must I set another property than "group"?
Solved! Go to Solution.
Carsten,
You are just missing the view property in the Expand widgets properties:
var legendExpand = new Expand({
  view: view,
  content: new Legend({view: view}),
  group: "top-right"
});Once you add that to both your expand widget you should be good to go.
Carsten,
You are just missing the view property in the Expand widgets properties:
var legendExpand = new Expand({
  view: view,
  content: new Legend({view: view}),
  group: "top-right"
});Once you add that to both your expand widget you should be good to go.
Of course! Thanks. Worked like a charm 🙂
