ElementModule

modules/app/ ElementModule

.new ElementModule(containeropt)

Source:
Parameters:
Name Type Attributes Default Description
container Object <optional>
document.body

container is the DOM object to which application's canvas will be added to.

Example

Creating an element module, passing it to the App

new App([
  new ElementModule(document.getElementById('app'))
]);