Class: Action

Action

new tart.mvc.Action(params, layout, view, controller)

Name Type Description
params Object

Params.

layout tart.mvc.LayoutTemplate

Layout.

view tart.mvc.View

View.

controller tart.mvc.Controller

Controller.

Members

deconstructor

Deconstructor method of this action. Developers should override this property in an action function like;

this.deconstructor = function() {}

and should deallocate the memory they have used in the action. This is also helpful for resolving issues that arise because of tartMVC's statefullness; such as removed but dangling DOM nodes, etc.

layout

params

view

Methods

Returns:
Type Description
tart.mvc.LayoutTemplate The layout template (whether custom or default) that belongs to the action.
Returns:
Type Description
tart.mvc.ViewTemplate The view script that belongs to the action.

setLayout(layout)

Name Type Description
layout tart.mvc.LayoutTemplate

Layout.

setViewScript(viewScript)

Sets the action's view script.

Name Type Description
viewScript tart.mvc.ViewTemplate

view script.