markup:
var instance = Module.createView({
backgroundColor:"#000",
options : {
tintColor:"#444",
pageMode : myVariable
}
});
<test>
<Module id="myModule" module="my.module" method="createView" backgroundColor="#000" options="???" />
</test>
Suggestion:
No method - only module reference and a lazyOnInit (or whatever name :) ) property that not are being called before its run in the controller.
<test>
<Module id="myModule" module="my.module" lazyOnInit="createView" />
</test>
$.myModule.lazyOnInit({
backgroundColor:"#000",
options : {
tintColor:"#444",
pageMode : myVariable
}
});
Does it make sence?
Mads
Comments
- Tony Lukasavage 2013-09-25
Can't you just do this with TSS? The create function you specify in the "method" attribute should make use of any TSS that applies to it.
- Eric Merriman 2018-03-07
Closing as invalid. If this is incorrect, please reopen.
JSON Source