我有選項卡的列表動態破壞標籤,我要的是每當我切換選項卡,將項目添加到標籤,它是重繪,和老片被破壞。出於性能原因,我正在這樣做。如何建立/煎茶觸摸2
這是我想做到這一點,但它不工作
view= Ext.Viewport.add({
xtype : 'tabpanel',
deferredRender:false,
tabBarPosition : 'bottom',
items : tabs,
listeners :
{
activeitemchange : function(container, newValue, oldValue,opts)
{
// --> destroy old tab
oldValue.setItems([]);
index = container.items.findIndex('id',newValue.id);
// --> redraw new tab
newValue.add(tabItems[index-1]);
}
}
});
的選項卡只加載第一次。第二次我輸入一個標籤我得到
未捕獲的錯誤:NOT_FOUND_ERR:DOM異常8
什麼是正確的方法來做到這一點?
這是比創建其中的項目標籤真的更高性能。
謝謝
什麼叫「不工作」是什麼意思?請更具體的 – 2012-04-18 14:23:35
您好添加錯誤的問題,我越來越未捕獲錯誤:NOT_FOUND_ERR:DOM異常8當進入第二次我的標籤 – 2012-04-18 14:53:54