My biggest struggle with 2.7 is that the documentation seems very incomplete. Just my current example, createComponent allows you to specify defaults as the second argument.
In previous enyo versions I was able to specify {owner:someOtherOwner} and then someOtherOwner.$.MyComponentName would be available. Now, that doesn't seem to be working at all.
Where can I find out how these defaults are processed, or what limitations exist to what defaults you can create?
0 ·
Comments
someOtherComponent.createComponent(myComponent, {container:this});
Though my documentation question still remains.
{owner: this}
). You can define anything you want in either object and they will be set as properties on the constructed component.Here's the docs for that method:
http://enyojs.com/docs/latest/index.html#/kind/enyo/Component/Component:createComponent