1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
    nmadhavan_1972@yahoo.com is on a distinguished road

      0  

    Default contentEl missing in 2.0

    contentEl missing in 2.0


    Is there any other mechanism to place an HTML element (created outside Ext using my javascript library) inside an Ext Component? Sencha Touch 1.1 provided a contentEl attribute which was useful for me.

    regards,
    Madhavan

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    I think we missed porting this property when creating the new Component class. We will make sure to add this asap. For now I suggest you add the element to the component using:

    Code:
    var component = Ext.create('Ext.Component', {...config...});
    component.innerElement.append(yourContentEl);

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
    nmadhavan_1972@yahoo.com is on a distinguished road

      0  

    Default thanks...

    thanks...


    Thanks for the quick response. You guys are really awesome.

    Madhavan

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    12
    Vote Rating
    0
    pagameba is on a distinguished road

      0  

    Red face thanks

    thanks


    I was looking for this too, thanks for the hint. I just added

    Code:
    initialize: function() { this.innerElement.append(this.getContentEl()); }
    to my panels and set the contentEl in the config.

Thread Participants: 2