1

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()
            });
蒋兴尚
  • 67
  • 6

1 Answers1

0

I have explained how to use Ext.define in ExtJS4 in bellowed link.

How to use Ext.define in ExtJS 4?

Community
  • 1
  • 1
Kunal
  • 984
  • 4
  • 14
  • 33