PDA

View Full Version : Embed a panel into an element



megakill
2 May 2012, 3:06 AM
Hello,

how to embed a panel, defined in a class, e. g.: MyApp.MyPanel, into an element on a page? I saw a tutorial on this once, but can't seem to find it. Is it still possible with the current ExtJS version?

Thanks...

vietits
2 May 2012, 5:31 AM
Do you mean renderTo config?


Ext.create('Ext.panel.Panel', {
renderTo: 'div_element_id',
....
})

megakill
2 May 2012, 6:47 AM
Thanks! That's exactly what I was looking for...