May 28, 2011, 7:50 PM
multiple instances of the same panel type
Hello:
I want to define a panel as a type and I want to create two instances of this panel, one in a window and one in a normal panel. What is the best way to achieve this with ext.net?
What about duplicate ids?
In pure extjs I would have something like this:
I want to define a panel as a type and I want to create two instances of this panel, one in a window and one in a normal panel. What is the best way to achieve this with ext.net?
What about duplicate ids?
In pure extjs I would have something like this:
EditPanel = Ext.extend(Ext.Panel, {
title: 'My Panel',
width: 523,
height: 384,
initComponent: function() {
this.tbar = {
xtype: 'toolbar',
items: [
{
xtype: 'button',
text: 'MyButton'
}
]
};
EditPanel.superclass.initComponent.call(this);
}
});
var myEditPanel1 = new EditPanel();
var myEditPanel2 = new EditPanel();
Thank you
Last edited by costab; May 28, 2011 at 8:08 PM.