new tart.mvc.MobileAction(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. |
Extends
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
-
inherited getLayout(){tart.mvc.LayoutTemplate}
-
Returns:
Type Description tart.mvc.LayoutTemplate The layout template (whether custom or default) that belongs to the action. -
inherited getViewScript(){tart.mvc.ViewTemplate}
-
Returns:
Type Description tart.mvc.ViewTemplate The view script that belongs to the action. -
inherited setLayout(layout)
-
Name Type Description layout
tart.mvc.LayoutTemplate Layout.
-
inherited setViewScript(viewScript)
-
Sets the action's view script.
Name Type Description viewScript
tart.mvc.ViewTemplate view script.