I get a error:dockedItems is null or not a object. I want to know what I should do when I define a class that define an EXTJS4 class.
Ext.define("com.yx.MyPanel", {
extend: "Ext.panel.Panel",
config: {
title: "Clannad",
width: 100,
height: 100
},
constructor: function(config) {
this.initConfig(config);
this.callParent([config]);
}
});
Ext.create("com.yx.MyPanel", {
renderTo: Ext.getBody()
});