tags:

views:

47

answers:

1

What is the differenct btween of applyTo and contentEl in extjs ?

They are two config propertis of the panel .

+1  A: 

applyTo renders the panel into a target element (the panel body could still contain any content), contentEl uses the target element as its body content (the panel could still be rendered to any other element). The two methods are unrelated.

bmoeskau
so, the applyTo equals to 'renderTo"?
hguser
applyTo assumes that the existing content supplies structural markup expected by Ext and renders the component on top of that. renderTo simply treats the existing element as a parent container to render into. The docs are pretty clear on what these do, you should review them more closely.
bmoeskau