Skip to main content
Pentaho Documentation

util

pentaho.module. util

AMD Module

require(["pentaho/module/util"], function(util) { /* code goes here */ });

The util namespace contains utility function for working with modules.

Source: javascript/web/pentaho/module/util.js, line 33

Methods

Name Description
resolveModuleId(moduleId, dependentId) : string

Resolves a module identifier as if it were a dependency of another module.

Methods Details

resolveModuleId(moduleId, dependentId) : string

Resolves a module identifier as if it were a dependency of another module.

Resolving makes moduleId absolute, relative to dependentId.

Afterwards, any applicable RequireJS contextual mapping configuration is applied.

Source: javascript/web/pentaho/module/util.js, line 95

Parameters:
Name Default Value Summary
moduleId : string

The identifier of the module to be resolved.

dependentId : string

The module that depends on moduleId.

Returns:
Name Description
string

The identifier of the resolved module.