AnsweredAssumed Answered

How can I toggle the visibility of a widget?

Question asked by jthompson_geojobe on Mar 25, 2016
Latest reply on Dec 20, 2016 by wgsl

I currently have a few widgets in my config.json file that I would like to start out as not visible, so I am setting the "visible" property to false. I have another widget that will be sending a request and depending on the response from the request, I want to turn on the visibility of some of the widgets. This is what I currently have:


var widgetManager = WidgetManager.getInstance();
widgetManager.appConfig.widgetOnScreen.widgets[6].visible = true;
widgetManager.loadWidget(widgetManager.appConfig.widgetOnScreen.widgets[6]).then(lang.hitch(this, function(widget){



The console log I have shows that the visible property is set to true (widget { visible:true }), but the widget is not visible in the application. Can anyone help with this?