-
11 Oct 2011 9:50 PM #1
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
-
12 Oct 2011 7:21 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
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);
-
12 Oct 2011 7:49 AM #3
thanks...
thanks...
Thanks for the quick response. You guys are really awesome.
Madhavan
-
3 Nov 2011 12:43 PM #4
thanks
thanks
I was looking for this too, thanks for the hint. I just added
to my panels and set the contentEl in the config.Code:initialize: function() { this.innerElement.append(this.getContentEl()); }


Reply With Quote
