-
3 Feb 2013 8:59 AM #1
Adding children to a custom linked container in Sencha Architect
Adding children to a custom linked container in Sencha Architect
I'm currently trying out Sencha Architect with Sencha Touch to see if I could potentially use it for a personal project, and I have run into an issue. Not sure if it's a limitation of Architect, or my lack of knowledge. I have some basic experience with the Sencha Touch framework, not Sencha Architect however.
I'd like to reuse a custom container class, which has some preset configs, to save myself reconfiguring every container with the same setting, and improve code maintainability. In a normal project I would do this by extending Ext.Container, applying a custom xtype (e.g. mycontainer, and adding my custom configurations. Then I could use mycontainer instead of container whenever I need.
Initially, using linked components in Architect seemed like the solution to me, but it appears that it is not possible to add child components to linked containers.
So, how can it be done?
-
4 Feb 2013 12:19 PM #2
This is true, it is a problem.
I envision a solution similar to what the shadow dom has implemented. You will be able to put placeholders at certain locations and then when you add those to the linked instances they will know where to go.Aaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote