IService
pentaho.theme. IService
The IService
interface contains methods for managing themes of modules.
Source: doc-js/pentaho/theme/IService.jsdoc, line 17
See also: pentaho.theme.main , pentaho.theme.ThemeAnnotation , pentaho.theme.LoadThemeAnnotation
Methods
Name | Description |
---|---|
classifyDomAsModule(domElement, moduleOrId) | Brands a DOM element so that the styles of CSS theme resources of a module apply to it. |
getModuleCssClass(moduleOrId) : string | Gets a CSS class that selects all versions of a given module. |
getModuleUniqueCssClass(moduleOrId) : string | Gets a CSS class that selects a given module. |
loadModuleThemeAsync(moduleOrId) : Promise | Loads the theme resources of a given module, if any. |
Methods Details
classifyDomAsModule(domElement, moduleOrId) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Brands a DOM element so that the styles of CSS theme resources of a module apply to it. Currently, two CSS classes are added to the element, one which identifies every version of this module and another which identifies exactly the current version. Source: doc-js/pentaho/theme/IService.jsdoc, line 49
See also: pentaho.theme.IService#getModuleCssClass , pentaho.theme.IService#getModuleUniqueCssClass |
getModuleCssClass(moduleOrId) : string | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a CSS class that selects all versions of a given module. As an example, if the given module had the identifier:
then the class would be:
Source: doc-js/pentaho/theme/IService.jsdoc, line 67
|
getModuleUniqueCssClass(moduleOrId) : string | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a CSS class that selects a given module. This method may return a random CSS class associated with each module. Source: doc-js/pentaho/theme/IService.jsdoc, line 87
See also: pentaho.theme.IService#getModuleCssClass |
loadModuleThemeAsync(moduleOrId) : Promise | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Loads the theme resources of a given module, if any. Determines if the module has an associated If module is a type module, any theme resources of ascendant modules are also loaded. Source: doc-js/pentaho/theme/IService.jsdoc, line 29
|