Results 1 to 4 of 4

Thread: contentEl missing in 2.0

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
      0  

    Default 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
    11
      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
      0  

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

    Red face 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •