I am adding an item to Extjs panel.
this.add(new_el);
this.doLayout();
It works fine. but in some cases I have to add {new_el} at exact position, not last.
For example penultimate one.
Can't find easy method in Extjs 3.2.1
You should use insert()
instead of add()
.
Mypanel.insert(0,cmp1);
Mypanel.insert(4,cmp2);