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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With