I am new to extjs in general, especially for version 4:
I created a class:
Ext.define('MyPanel', {
extend:'Ext.panel.Panel',
views: ["MyPanel"],
config: {
width: 200,
height: 300,
title: "HELLO"
},
constructor:function(config) {
this.initConfig(config);
return this;
},
alias: 'widget.MyPanel'
});
Next, I want to call this class as XTYPE in tabPanel elements: []:
I liked this:
items: [{
title: 'Kontakt',
id: 'kontaktTab',
closable:true,
closeAction: 'hide',
layout: 'fit',
items:[{
xtype: "MyPanel"
}]
Unlucky, all I get is:
Cannot create an instance of unrecognized alias: widget.MyPanel"
You should think about that noob ....; -)
Someone please help !!!
user757425
source
share