1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    2
    Vote Rating
    0
    Merott is on a distinguished road

      0  

    Default 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?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,190
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      1  

    Default


    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

Tags for this Thread