Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the function to get all items in ExtJs Panel

I have the form panel.

mypanel = Ext.create('Ext.fomr.Panel');
mypanel.add(Item1);
mypanel.add(Item2);
mypanel.add(Item3);

Now I want to get the list of items in mypanel so that I can add it to another panel.

How can i do that

like image 622
user191542 Avatar asked Nov 21 '25 16:11

user191542


1 Answers

var all = mypanel.items.getRange();

It will give you an array of all the child components.

like image 128
Evan Trimboli Avatar answered Nov 23 '25 04:11

Evan Trimboli