Hello everyone!
There is a tab in a TabPanel,the tab's xtype is grid,how could i reload the tab and change the tab's xtype to iframe?
Thanks in advance!
unless you're referring to @hendricd's ManagedIframePanel
http://extjs.com/forum/showthread.php?t=40961
there's no "iframe" xtype otherwise.
as for "reloading and changing" a tab's xtype -- you can't.
call tabpanel.remove(tab), then tabpanel.add(newTabWithNewXtype) instead.
:) Thanks very much!
your says is not very clear. maybe you can change "html" attribute in tag like this:
var tab = new Ext.TabPanel({
region:'center',
deferredRender:false,
activeTab:0,
resizeTabs:true, // turn on tab resizing
minTabWidth: 115,
tabWidth:135,
enableTabScroll:true
});
tab.add({
'id' : node.id,
'title' : node.text,
closable:true,
frame:true,
html:''
});
if you want to change view in that tag, change the iframeSrc.
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|