I've got a TabPanel in my ViewPort with 4 tabs; is it possible to keep the tabs itself (the 'buttons' to tap), but remove/create the content/the dom if not visible?
I'm looking for something like tab.removeContent() and tab.createContent(), I guess...
I tried:
activeitemchange: function(component, value, oldValue, eOpts) {
Ext.Viewport.remove(oldValue, true);
}
which seems to do nothing...
This removes everything:
activeitemchange: function(component, value, oldValue, eOpts) {
Ext.Viewport.remove(Ext.Viewport.getActiveItem(), true);
}
I got the remove-part working:
oldValue.removeInnerAt(0);
but what's the 'opposite' of that, i.e. how can I set the tab's content?
var myContent = Ext.create('MyApp.view.MyView');
// and now?