Ext.define('something', {
extend: 'Ext.panel.Panel',
layout: 'border',
constructor: function(config){
let me = this;
me.callParent(arguments);
me.initConfig(config);
}
});
If I define a class as shown above, can I add an instance of it within another panel like so:
let mainPan = Ext.create("Ext.panel.Panel", {
layout: 'border',
items: [
something,
something else
]
});
this.add(mainPan);
I am facing issues with the display when trying to nest panels in this manner. Is there a way to resolve this nesting issue and have the mainPan display correctly?