-
25 Apr 2012 12:50 AM #1
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:
And it appears at the end of my ContentPanel.Code:myContentPanel.add(myLayout, new RowData(1,1, new Margins(0)));
And I would need something like...
Where 4 is the position.Code:myContentPanel.addAt(4, myLayout, new RowData(1,1, new Margins(0)));
Some ideas?
Thanks.
Regards.
-
Best Answer Posted by sven
There is an insert method that is doing exactly what you are looking for
-
25 Apr 2012 12:53 AM #2
There is an insert method that is doing exactly what you are looking for
-
25 Apr 2012 1:02 AM #3
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.


Reply With Quote