menu

SiteGenesis / Server-side JS / Class: View

module:views/View~ View

new View() → {module:views/View~View}

View class to pass parameters to the templates and renders the templates. Other view modules extend this class.

Source:
Returns:
Type
module:views/View~View

Extends

Methods

extend(prop) → {Object}

Create a new sub class

Parameters:
Name Type Description
prop Object

An object defining the members of the sub class

Overrides:
Source:
Returns:

The sub class

Type
Object

module:views/View~ View

new View(params) → {module:views/View~View}

Base class for all view modules. See also The View concept. Loops through the parameters and passes them to the view.

Extends:
Parameters:
Name Type Description
params Object

The parameters to pass.

Source:
See:
Returns:
Type
module:views/View~View

Extends

Methods

extend(prop) → {Object}

Create a new sub class

Parameters:
Name Type Description
prop Object

An object defining the members of the sub class

Overrides:
Source:
Returns:

The sub class

Type
Object