[ACCEPTED]-ExtJs panel - adding dynamic components-panel
Accepted answer
I found the cause of the problem.
Cause: when 5 we add components with same 'id' to a panel, then 4 the newly added component will get added 3 to the top of the panel.
Fix: Use 'itemId' instead 2 of 'id' while adding same component to the 1 panel.
Hope this will be useful for someone.
You can use insert
method instead to specify the 2 index of panel items that you want to put 1 your component at:
var index = panel.items.length;
panel.insert(index, items);
// or if it always going to be the second item
panel.insert(1, items);
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.