1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    62
    Vote Rating
    0
    maqjav is on a distinguished road

      0  

    Default Answered: Add widget in an specific position

    Answered: Add widget in an specific position


    Hello.

    I've a ContentPanel that contains 10 LayoutContainer with ids (layout-1, to layout-10).

    I would like to add another layoutContainer in an specific position (for example between the 3-4) and with an specific LayoutData.

    Right now I only can add it like that:

    Code:
    myContentPanel.add(myLayout, new RowData(1,1, new Margins(0)));
    And it appears at the end of my ContentPanel.

    And I would need something like...
    Code:
    myContentPanel.addAt(4, myLayout, new RowData(1,1, new Margins(0)));
    Where 4 is the position.

    Some ideas?

    Thanks.
    Regards.

  2. There is an insert method that is doing exactly what you are looking for

  3. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    Answers
    60
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    There is an insert method that is doing exactly what you are looking for

  4. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    62
    Vote Rating
    0
    maqjav is on a distinguished road

      0  

    Default


    Right in front of my eyes and I didn't see it.

    I was looking for an "add" method and there is an "insert", that as you said, does exactly what I need.

    Thank you sven.

Thread Participants: 1