Hybrid View
-
9 Jul 2012 7:15 AM #1
Unanswered: TabPanel and FormPanel
Unanswered: TabPanel and FormPanel
I have a fullscreen Ext.Panel with card layout.
It contains a nestedlist with cards.
Each card contains a TabPanel.
The TabPanel contains an Ext.form.FormPanel.
screen.png
Problem is that i can't display the tab content. Nestedlist switch correctly between card but nothings appears under TabBar..
TabPanel generation...
Thx for your help ! ; )Code:Ext.define("Lahoco.view.Page", { extend : 'Ext.tab.Panel', fullscreen: true, initialize: function(){ var tab = 1; var panel = Ext.create('Ext.form.FormPanel',{ title: "Page "+tab, items: [ { xtype: 'textfield', name : 'name', label: 'Name' }, { xtype: 'emailfield', name : 'email', label: 'Email' }, { xtype: 'passwordfield', name : 'password', label: 'Password' } ] }); this.add(panel); }});
-
10 Jul 2012 12:55 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
- Answers
- 83
inside of initialize, add this.callParent(); under this.add();

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
15 Oct 2012 1:59 PM #3
Did you forget to renderTo ur tab?
Did you forget to renderTo ur tab?
I supposed to renderTo your Tab to an dom.element.


Reply With Quote