View Full Version : Divs in Panels and Forms

9 Nov 2009, 11:39 PM
Is it possible to create <div>'s in Panels and Forms, so one can render ext components to the <div>'s. Ext components such as Progress Bars, textFields, etc?

10 Nov 2009, 12:13 AM
You can either set those in the 'html' config option for panels and derived widgets, or you can later on manipulate the contained html by accessing the raw dom property via yourpanel.getEl().dom (see Ext.Panel's "getEl" method and Ext.Element). Though for most things calling yourpanel.add(yournewcomponent) should be the preferred way to go, as it also invokes events and takes care of layouting.