Functional Modules API
The Functional Modules API is used to load a functional module (that is defined using functionalModule.xml
file) through synchronous and asynchronous operations dynamically. The Functional Modules API contains the kony.modules Namespace
and the following functions.
Function | Description |
---|---|
kony.modules.loadFunctionalModule
|
A synchronous API used to load functional module (views and jsModules) in scope of JavaScript. |
kony.modules.loadFunctionalModuleAsync
|
Asynchronous API used to load functional module (views and jsModules) in scope of JavaScript. If the module is already loaded, then it will call successcallback without loading the same module. |
Load the functional modules (views and js modules) in scope of JavaScript by using the kony.modules.loadFunctionalModule
function. When you reload the modules again, the function returns a Boolean value true. You can also load the function modules by using the kony.modules.loadFunctionalModuleAsync
function. Using this asynchronous function, you can call the success call back or failure call back when you reload the modules again.