1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    43
    Vote Rating
    0
    anfla is on a distinguished road

      0  

    Default How to add an component dynamically as first component?

    How to add an component dynamically as first component?


    Heya, folks. A little question again:

    I have multiple panels with a set of components.. Like this:

    PHP Code:
    xtype"panel",
    items: [{
       
    xtype"button",
       
    text"foo"
    }, 
    {
       
    xtype"textfield",
       
    value"bar"
    }] 
    But I need to add an component as first component during runtime, without overwriting the "foo"-button. Is this even possible?

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    546
    Vote Rating
    52
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

Thread Participants: 1