PP.App.getActiveModule

Syntax

getActiveModule(moduleName: String);

Parameters

moduleName. Unit name. Optional parameter. If the value is not specified, the method returns settings of the unit, which type is saved in the session.

Description

The getActiveMode method returns settings of the current system unit or its settings by the specified name.

Comments

The method returns a JSON object with the following fields: Data - unit type determined with the PP.App.ModuleType enumeration, Name - unit name, ResourceKey - resource key for displaying unit name, Url - unit URL, Visible - parameter indicating unit visibility determined with the PP.ModuleVisibilityMode enumeration.

Example

The method use is given in the example for PP.App.getImagePath.

See also:

PP.App