Titanium JIRA Archive
Alloy (ALOY)

[ALOY-159] Assign controller inheritance from markup via "parentController"

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2012-08-06T09:27:03.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2012-08-06T07:47:22.000+0000
Updated2018-03-07T22:25:56.000+0000

Description

The code for assigning the parent controller in controllers is hidden. To give developers access to change the parent controller, they should be able to use the tag attribute "parentController" to assign a parent. "BaseController" should be used by default. This attribute should be optional.

index.xml

<Alloy parentController="MyController">
    <!-- the rest of the markup -->
</Alloy>

index.js (generated section, not done by developer)

function Controller() {
    Alloy.getController('MyController').call(this);
    var $ = this;
    // the rest of the view and controller code
}

Comments

No comments

JSON Source