-
11 Nov 2011 2:48 PM #1
Answered: Adding a Form Panel as and item in a Panel
Answered: Adding a Form Panel as and item in a Panel
The form is not appearing as an item in the panel. I'm not sure what's wrong.
This is using Sencha Touch 2.
Code:// Welcome View Ext.define('SocialTrip.view.Welcome',{ extend: 'Ext.form.Panel', config:{ items:[ { xtype: 'navigationbar', title: 'Hello' }, { xtype: 'formpanel', items:[ { xtype: 'textfield', label: 'Username' }, { xtype: 'textfield', label: 'Password' } ] } ] } });
-
Best Answer Posted by joeshonm
I think I found my own solution. If I use a form panel and set fullscreen to true it will display the form and the docked navigation bar.
-
11 Nov 2011 3:10 PM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
- Answers
- 17
Sorry, what is the question?
-
11 Nov 2011 3:18 PM #3
-
11 Nov 2011 3:33 PM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
- Answers
- 17
I see, looks like you'd want to add docked: 'top' to the navigationbar.
-
11 Nov 2011 3:41 PM #5
I just changed that and the form still is not shown.
-
11 Nov 2011 3:51 PM #6
I think I found my own solution. If I use a form panel and set fullscreen to true it will display the form and the docked navigation bar.


Reply With Quote