Skip to main content

Pentaho+ documentation has moved!

The new product documentation portal is here. Check it out now at docs.hitachivantara.com

 

Hitachi Vantara Lumada and Pentaho Documentation

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 :  function
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

Parameters:
Name Default Value Summary
viewSpec : pentaho.visual.spec.IView

The view specification.

Members Details

base:  function
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.base.

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

Parameters:
Name Default Value Summary
source : object

The instance specification.

keyArgs : object
Optional

The keyword arguments.

Parameters:
Name Default Value Summary
exclude : object
Optional

A map of property names to exclude from source.

Returns:
Name Description
object

This object.