Interface ModuleConfigurationCallback
-
public interface ModuleConfigurationCallback
Used to change the configuration object which will be used to configure RequireJS; callbacks can modify and override the configuration after it was created by theModuleManagerservice based on contributedJavaScriptModuleConfigurations. This allows components, pages, mixins and services to configure Require.JS dynamically in a per-request basis by using theJavaScriptSupport.addModuleConfigurationCallback(ModuleConfigurationCallback)method. Note that RequireJS is only configured during a full page render; on Ajax requests, RequireJS will already be loaded and configured.- Since:
- 5.4
- See Also:
JavaScriptSupport.addModuleConfigurationCallback(ModuleConfigurationCallback)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JSONObjectconfigure(JSONObject configuration)Receives the current configuration, which can be copied or returned, or (more typically) modified and returned.
-
-
-
Method Detail
-
configure
JSONObject configure(JSONObject configuration)
Receives the current configuration, which can be copied or returned, or (more typically) modified and returned.- Parameters:
configuration- aJSONObjectcontaining the current configuration.- Returns:
- a
JSONObjectcontaining the changed configuration, most probably the same one received as a parameter.
-
-