PDA

View Full Version : How to render App to Div (resizable)



nothing
26 Apr 2012, 4:45 AM
Hello,
what is the correct way to render an App to a specific Div?
I know "renderTo" and have built an App with viewport, and want this App to be rendered to a Div.
Thanks

carol.ext
26 Apr 2012, 6:38 AM
Sounds like you don't need to be using a Viewport if you don't want it to render to document body since that is what a Viewport does.

From the Viewport documentation (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.container.Viewport-cfg-renderTo):



renderTo : String/HTMLElement/Ext.Element

Not applicable. Always renders to document body.

Overrides: Ext.AbstractComponent.renderTo