Class: Controller

Controller

new tart.components.Controller(opt_model, opt_view)

Base controller

Name Type Description
opt_model tart.base.Model optional

Data model.

opt_view tart.components.View optional

View object.

Methods

buildDOM(){Element}

Build DOM from view

Returns:
Type Description
Element generated DOM of attached View object.

getDOM(){Element}

Get DOM generated by view and attached by controller

Returns:
Type Description
Element DOM reference.