I have some pre-existing js code that manipulates a div via DOM. I have a Ext.container.Viewport with a border layout. I want to display the contents of the div within a panel in the center region of the viewport.
HTML
<div id="contents"></div>
EXTJS
Ext.create('Ext.container.Viewport', {
layout: 'border',
items: [{
region: 'north',
...
}, {
region: 'center',
items: [{
// #contents;
}]
]}
});
You may be interested in the
contentElconfiguration option. From the documentation:There are some additional notes in the documentation, but it sounds like exactly what you’re looking for.