1. #1
    Ext User skaue's Avatar
    Join Date
    Sep 2008
    Location
    Troms
    Posts
    191
    Vote Rating
    0
    skaue is on a distinguished road

      0  

    Default [SOLVED]Inject a formfield into a FormPanel in between items

    [SOLVED]Inject a formfield into a FormPanel in between items


    I see in the API that I can use Add to inject new components into a FormPanel. But is there a way to add an item in between two items?

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    use insert()

    Code:
    insert( Number index, Ext.Component component ) : Ext.Component
    Inserts a Component into this Container at a specified index. Fires the beforeadd event before inserting, then fires the add event after the Component has been inserted.
    Parameters:
    
        * index : Number
          The index at which the Component will be inserted into the Container's items collection
        * component : Ext.Component
          The child Component to insert.
    
          Ext uses lazy rendering, and will only render the inserted Component should it become necessary.
    
          A Component config object may be passed in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the inserted Component will not be rendered immediately. To take advantage of this "lazy instantiation", set the Ext.Component.xtype config property to the registered type of the Component wanted.
    
          For a list of all available xtypes, see Ext.Component.
    
    Returns:
    
        * Ext.Component
          component The Component (or config object) that was inserted with the Container's default config values applied.

  3. #3
    Ext User skaue's Avatar
    Join Date
    Sep 2008
    Location
    Troms
    Posts
    191
    Vote Rating
    0
    skaue is on a distinguished road

      0  

    Default


    Thanks! I will try that

  4. #4
    Ext User skaue's Avatar
    Join Date
    Sep 2008
    Location
    Troms
    Posts
    191
    Vote Rating
    0
    skaue is on a distinguished road

      0  

    Default


    worked like charm!!!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar