Jewelry Box theme. WAB 2.2
Hello,
I have a FeatureAction attached to the attribute window. When I activate my feature action a widget opens and I'd like to close the attribute window. How would I go about that?
Thank You,
Greg
Solved! Go to Solution.
Greg,
No I just thought you were talking about the AT Widget. In that case it is as simple as
this.map.infoWindow.hide();
Greg,
Sure you just need to get a reference to the AT widget and call the _closeTable method:
//requires
'jimu/WidgetManager',
...
WidgetManager
...
var attWidget = WidgetManager.getInstance().getWidgetByLabel("Attribute Table");
if (attWidget) {
attWidget._closeTable();
}
Hi Robert,
Thank you for responding. Well, its not an Attribute Table. Its the Attribute Window. The popup window from selecting a feature on the map. It displays all the attributes of the selected feature, it has the zoom to link and the three dots on the right side. Those three dots is where my feature action is. So when I click my feature action I want this selected features attribute window to close. Does it have a different name?
Greg
Greg,
No I just thought you were talking about the AT Widget. In that case it is as simple as
this.map.infoWindow.hide();
Thank You Robert that is exactly what I was looking for.