Home User Documentation Developer Documentation GitHub

Namespace: moduleManager

plastic.modules. moduleManager

plastic.js Module Manager (Singleton)

The ModuleManager is used to register plastic.js Modules It stores which modules are available and additional informations about them (like dependencies)

Examples

plastic.modules.moduleManager.register('display', 'simple-table', 'SimpleTable', ["d3"]);

var moduleInfo = plastic.modules.moduleManager.get('display', 'simple-table');

Members

staticplastic.modules.moduleManager.modulesObject

Module Registry Object

staticplastic.modules.moduleManager.parametersSchema

Parameters Schema TODO: Remove this?

Methods

staticplastic.modules.moduleManager.get(moduleType, apiName)

modules/moduleManager.js, line 80

Gets a Module by Type and Api Name

Name Type Description
moduleType
apiName

staticplastic.modules.moduleManager.register(paramsObj)

modules/moduleManager.js, line 53

Register Modules to the Registry.

Every Module has to register itself here, or it won't be found and exectuted!

Name Type Description
paramsObj Object

ParameterObject