getModules();
The getModules method returns array of application elements.
The method returns array of values of the PP.Ui.MenuItem type.
To execute the example, open Prognoz Platform 9 web application and execute in the console browser:
// Get array of application elements and display its size
var modules = PP.App.getModules();
console.log("Number of application elements: " + modules.length);
After executing the example the value of size of application element array is displayed:
Number of application elements: 8
See also: