rscheitlin
I have been trying to close a widget when my custom widget is opened. I have used your solution above, but because the widget that I am trying to close resided in the widget pool, I have changed
pm.closePanel(this.appConfig.widgetOnScreen.widgets[4])
to
pm.closePanel(this.appConfig.widgetPool.widgets[1]);
I keep getting an error that reads:
TypeError: panel.setState is not a function
The widget is an "In-Panel" widget.
Would you have any idea as to why I am getting this error?
Thank You!
Chris