MoShAn480
24 Apr 2007, 4:15 PM
Hi,
i have a tabbed content area which loads multiple tabs which are all closeable. When a user closes a tab, they are allowed to reopen the tab via toolbar menu. In my code a keep a global reference to the layout then i call the following to re-create the tab:
layout.beginUpdate();
layout.add('center', new Ext.ContentPanel('userProfile', {title: 'User Profile', closable: true}));
layout.endUpdate();
Which is the same code i use when i am creating the initial layout.
Any help on this would be appreciated.
Thanks in advance!
i have a tabbed content area which loads multiple tabs which are all closeable. When a user closes a tab, they are allowed to reopen the tab via toolbar menu. In my code a keep a global reference to the layout then i call the following to re-create the tab:
layout.beginUpdate();
layout.add('center', new Ext.ContentPanel('userProfile', {title: 'User Profile', closable: true}));
layout.endUpdate();
Which is the same code i use when i am creating the initial layout.
Any help on this would be appreciated.
Thanks in advance!