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 Foresight Analytics Platform web application and execute the following in the browser console:

// 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