如何在惩罚的extjs项目中多次添加容器

How to add container multiple time in extjs item of penal

我有一个容器,我要将其添加到我的面板项目中。 me.add(Contain);

我想在某些情况下多次添加此容器。我正在使用 for 循环,最后我正在写。 panel.doLayout(); 似乎只有一个容器正在添加。我错过了什么吗? 如何在 extjs 面板的项目中旧化多个容器。

您不能多次添加同一个实例,想想渲染系统如何工作,因为 html 节点只有 1 个父节点。

您必须添加容器的多个实例,但是您可以向它们传递相同的视图(如果您想显示相同的数据)

因此,当您添加时,您必须创建一个新版本的容器,但如果您愿意,您可以共享商店、视图模型和其他数据

Before add container multiple times in to your panel. Check that container 
you are adding does not have id or itemId as a config property.

So if you want to add that container multiple time you can use that container
with different itemId.
Otherwise it will add only one container and other added container will not
displayed on GUI.