Class: View

View(jawId, jawDefinition)

The Class to extend to create View classes.

Constructor

new View(jawId, jawDefinition)

Parameters:
Name Type Description
jawId string The internal id taht will identify the View class.
jawDefinition object An object with method to assign to this class. This parameter is deprecated and will be removed. Still exisists for back-compatibility reason. The jawDefinition parameter is deprecated and will be removed. Still exisists for back-compatibility reason.
Source:

Methods

addTemplate(name, content) → {object}

Add an HTML template to this View.
Parameters:
Name Type Description
name string The name that will be used in container templates to print this template. If null or empty this will be the default template. There could be only one default template. Can be any string except "__default__" that is a reserved name.
content string The template HTML content.
Version:
  • 1.0.0, 2020.09.08
Deprecated:
  • Yes
Source:
Returns:
The complete list of Templates.
Type
object