API Docs for:
Show:

MainView Class

Defined in: view\MainView.js:10
Module: modules

MainView manages all the modules. At initialization time it injects all the needed DOM elements. Template: main.html

Methods

allModulesLoaded

()

This method executes a set of functions when all the modules have been loaded.

initialize

(
  • A
)

Defined in view\MainView.js:19

The initialization method of this object.

Parameters:

  • A Map

    map of parameters

layoutManager

()

Defined in view\MainView.js:65

This method alters the layout at run-time. It should be used only when absolutely necessary preferring instead a static CSS+HTML+Mustaches.js layout.

loadViews

()

Defined in view\MainView.js:84

This method initializes all the modules declared in the modules.js file. In this environment a module is a View-Controller object: - each module is responsible for its representation; - each module is combined with a DOM element of the MainView's template; - each DOM element has an ID with prefix 'bgplay' to avoid ambiguities with the background html.

render

()

Defined in view\MainView.js:55

This method draws this module (eg. inject the DOM and elements).