Opening a widget from a placeholder can be done using PanelManager's showPanel method. However what if the widget is located in a controller ?
So far the only solution I found is to call the controller's method which open a given widget :
var controller = WidgetManager.getInstance().getWidgetsByName('MyThemeController'); controller.openWidget(widgetConfig);
The problem with this solution is that not every theme controller implement such method.
Solved! Go to Solution.
Mathieu,
The only thing I can think of is you will have to develop a function that has a switch case based on the theme, if you are looking for a function that can open a widget irrelevant of the theme in use.
Mathieu,
The only thing I can think of is you will have to develop a function that has a switch case based on the theme, if you are looking for a function that can open a widget irrelevant of the theme in use.
Yes so far this seems to be the only solution. The other one being to add a custom method to each theme.