1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    California
    Posts
    17
    Vote Rating
    1
    thejonz is on a distinguished road

      0  

    Default 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!

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,185
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    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

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Location
    California
    Posts
    17
    Vote Rating
    1
    thejonz is on a distinguished road

      0  

    Default Thanks!

    Thanks!


    Excellent, I'll give it a try, thanks!