Theme controllers have access to all there widgets configs with method getAllConfigs();
Is there a way to do the same for all other widgets ?
Thanks
Solved! Go to Solution.
Mathieu,
In any widget you can use this.appConfig to get access to the main config.json.
Mathieu,
In any widget you can use this.appConfig to get access to the main config.json.
Robert,
I think my problem is that I'm not in a widget when trying do do that so I don't have access to appConfig.
Thanks
Mathieu,
What are you in when you want to get access to the appConfig?
I'm in an outside class.
What I did is create an instance of this class from within a widget and pass it the appConfig and it worked.
Thank you Robert.
or better access it through the WidgetManager.