util
pentaho.visual. util
AMD Module
require(["pentaho/visual/util"], function(util) { /* code goes here */ });
The pentaho/visual/util
contains utilities for dealing with visualizations.
Source: javascript/web/pentaho/visual/util.js, line 27
Methods
Name | Description |
---|---|
classifyDom(domElement, vizTypeId, viewTypeId) | Marks a DOM element as the container element of a visualization. |
getCssClasses(vizTypeId, viewTypeId) : string | Gets the CSS class names that should be added to a DOM element so that any themes associated with either the model or the view classes are applied to it. |
getDefaultViewModule(vizTypeId, keyArgs) : pentaho.module.IMeta | Gets the module of the default view class of a visualization, given its identifier. |
getModelAndDefaultViewClassesAsync(vizTypeId, keyArgs) : Promise. | Gets a promise for the model and default view classes, given a visualization type identifier. |
Methods Details
classifyDom(domElement, vizTypeId, viewTypeId) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Marks a DOM element as the container element of a visualization. Classes are added to the DOM element so that any themes associated with either the model or the view classes are applied to it. For both the model and the view, the class names are applied by calling Source: javascript/web/pentaho/visual/util.js, line 138
|
getCssClasses(vizTypeId, viewTypeId) : string | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the CSS class names that should be added to a DOM element so that any themes associated with either the model or the view classes are applied to it. For both the model and the view, the class names are obtained by calling Source: javascript/web/pentaho/visual/util.js, line 163
See also: pentaho.theme.IService#getModuleCssClasses |
getDefaultViewModule(vizTypeId, keyArgs) : pentaho.module.IMeta | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the module of the default view class of a visualization, given its identifier. The default view class is determined by the This method is only reliable to determine the default view module if the Source: javascript/web/pentaho/visual/util.js, line 61
|
getModelAndDefaultViewClassesAsync(vizTypeId, keyArgs) : Promise. | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets a promise for the model and default view classes, given a visualization type identifier. Source: javascript/web/pentaho/visual/util.js, line 92
|