-
27 Mar 2009 10:40 AM #1
TabPanel and Panel
TabPanel and Panel
Hi,
What's the better way to put a TabPanel in a tab of TabPanel?
I'm doing it:
html page:
js:Code:<div id="myTab"></div>
There is a better way to do it?Code:var myTab = new Ext.TabPanel({ renderTo: 'myTab', items:[{ title: 'A Tab', html: 'TAB' }] }); new Ext.TabPanel({ items:[{ contentEl: 'myTab' }] });
-
27 Mar 2009 11:22 AM #2
Include myTab as an item on the second TabPanel. rather than using contentEl. Then you would need to use renderTo on the second TabPanel rather than first (or better yet put it in a viewport instead... but I don't really know what you are trying to do).
I have better luck when I include a title for all tabs in tabpanel and specify the activeTab for all TabPanels.
-
27 Mar 2009 11:24 AM #3
Have no HTML in your page at all.
Do not use contentEl.
To put ANY BoxComponent (See inheritance chart at the top of every API doc page) into a TabPanel, just use it as an itemSearch the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642


Reply With Quote