-
9 Oct 2012 12:29 PM #1
Adding fields to a FieldSet dynamically using Sencha Touch Architect
Adding fields to a FieldSet dynamically using Sencha Touch Architect
Does anyone have an example of how to add one or more fields dynamically to an existing FieldSet using Sencha Touch Architect? I've tried many different things and have searched for an example but haven't been able to figure out a way to do this.
thanks!
-
9 Oct 2012 2:07 PM #2
A fieldset is a standard container and has an add method.
You can add an instance of a textfield (or other formfield). You can also add a JS object with an xtype that indicates what type to create.
Eg
Code:this.add(myFormField); // or this.add({ xtype: 'textfield' // configs... });Aaron Conran
@aconran
Sencha Architect Development Team
-
10 Oct 2012 7:38 AM #3
Thanks!
Thanks!
Excellent, I'll give it a try, thanks!


Reply With Quote