PDA

View Full Version : Ext.tab.Tab added component



Forn
18 Jul 2013, 8:26 AM
Hello. I create the tabpanel dynamicly. I create the Ext.tab.Panel, after this I create the Ext.tab.Tab and use add method to add it to the TabPanel.

But after this i need to add component to the Tab. But Ext.tab.Tab does not contain add method. So my question is - how can i add component to the tab inside tabpanel?

skirtle
18 Jul 2013, 7:19 PM
Ext.tab.Tab is just a re-styled button. It's used to switch between the child items of the TabPanel. You shouldn't need to create them yourself.

See this example for creating a TabPanel dynamically:

http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/tabs/tabs-adv.html