I am building a FeatureAction for my custom widget. I want to allow only features of services defined in the widget's config.json to have access to this FeatureAction. So I need the contents of the config.json file.
I could get it from the widget object using the WidgetManager, problem is that when the widget is not loaded the object won't be found. I don't want to force the user to open the widget before using the FeatureAction. Is there a way to accomplish this?
Here's a conceptual and simplified example of what I am trying to accomplish.
isFeatureSupported: function(featureSet) {