Class: View

View(window, name, html, cssDelegate, bindId, formatter, validator)

This is the view class, which hold a piece of html, which is shown on demand, by appending the html as a child node under the element with bindId.

Constructor

new View(window, name, html, cssDelegate, bindId, formatter, validator)

Parameters:
Name Type Default Description
window window

The browser window object

name string

The name of the view

html string

The html fragment to display

cssDelegate CssDelegate

The css delegator

bindId string content

The id of en element where this html fragment is displayed

formatter Formatter

The formatter

validator InputValidator

The input validator

Source: