22 Dec 2011 3:12 AM #1
Unanswered: dynamic add fields how to adjust layout?
var formPanel = Ext.getCmp('yourForm');
xtype : 'textfield',
fieldLabel : 'Extra Field',
name : 'yourName',
id : 'yourName'
using above method,it can dynamically add the field,i wanna add the field behind the exsiting field, however not dynamically adjust the layout, attache demo.zipthe demo,plz
Last edited by jinjianhe; 22 Dec 2011 at 3:18 AM. Reason: fix
22 Dec 2011 11:39 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
If you want to insert a field at a specific index, use the insert method instead of the add methodMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.