PP.App.getModules

Syntax

getModules();

Description

The getModules method returns array of application elements.

Comments

The method returns array of values of the PP.Ui.MenuItem type.

Example

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:

PP.App