I am trying to open the other panel and closing the current panel by using the below code, which is working for Foldable theme in WAB but not working for Box theme correctly.
var pm = PanelManager.getInstance();
var layerListWidget = null;
layerListWidget = pm.widgetManager.appConfig.widgetPool.widgets;
PanelManager.getInstance().closePanel(this.id + "_panel");
Do anyone have any idea, how to achieve this for Box Theme?