BaseView
BaseView
The impl.View
class is an optional base class for visualization views which implements the IView
interface.
An application instantiates a view given a specification with the visualization model and the container HTML element.
The first update of the view must be explicitly triggered by a call to model.update
.
Over time, the model may be mutated and, whenever its Update:{do}
event is emitted, the view automatically updates itself.
The view translates user interaction by perform actions
on the model. The standard actions are Select
and Execute
. There are sugar methods on the model to perform these, select
and execute
.
When a view is no longer needed, the application must call its dispose
method, so that the view can free held resources and not cause memory-leaks.
AMD Module
require(["pentaho/visual/impl/View"], function(BaseView) { /* code goes here */ });
Extends
Implements
Constructor
Name | Description |
---|---|
new BaseView(viewSpec) Abstract | Creates a view instance, given its specification. |
Members
Name | Description |
---|---|
base : Protected | If a method has been overridden, then the base method provides access to the overridden method. |
Methods
Name | Description |
---|---|
extend(source, keyArgs) : object | Extend an object with the properties of another. |
Constructor Details
new BaseView(viewSpec) Abstract | ||||||
---|---|---|---|---|---|---|
Creates a view instance, given its specification. Source: javascript/web/pentaho/visual/impl/View.js, line 82
|
Members Details
base: Protected |
---|
If a method has been overridden, then the base method provides access to the overridden method. Can also be called from within a constructor function. Source: javascript/web/pentaho/lang/Base.js, line 299 Inherited From: pentaho.lang.Base#base |
Methods Details
extend(source, keyArgs) : object | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Extend an object with the properties of another. Methods that are overridden are accessible through This object is extended, but its class doesn't change. Source: javascript/web/pentaho/lang/Base.js, line 1040 Inherited From: pentaho.lang.Base#extend
|