1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    California
    Posts
    29
    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
    9,369
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      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 Premium Member
    Join Date
    Aug 2012
    Location
    California
    Posts
    29
    Vote Rating
    1
    thejonz is on a distinguished road

      0  

    Default Thanks!

    Thanks!


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

Thread Participants: 1

Tags for this Thread