Skip to main content
Hitachi Vantara Lumada and Pentaho Documentation

theme

pentaho. theme

The theme namespace contains types that help with theming of components.

Source: doc-js/pentaho/theme/_namespace.jsdoc, line 17

Child Namespaces

Name Summary
spec

The theme.spec namespace contains specification interfaces.

Members

Name Description
main : IAmdLoaderPlugin

The pentaho/theme! module is an AMD/RequireJS loader plugin that loads a configured theme module for another given module.

Members Details

main: IAmdLoaderPlugin

The pentaho/theme! module is an AMD/RequireJS loader plugin that loads a configured theme module for another given module.

AMD Plugin Usage: "pentaho/theme!{moduleId}"

  1. {moduleId} — The identifier of the module being themed. To refer to the requesting module, use the special value _.

To register a theme module, configure the module composed of the plugin and its argument. For example, to configure the theme of the my/View module to be the my/theme/view module, specify the following AMD/RequireJS configuration:

{"config": {"pentaho/theme!my/View": {
      main:"my/theme/view"}
  }
}

To load the theme of the current module you request the pentaho/theme!_ module:

// Load the self theme.
define(["pentaho/theme!_"], function() {

});

Source: javascript/web/pentaho/theme/main.js, line 31

See also: pentaho.theme.spec.IConfiguration