you can change sample: app/simple/app/Viewport.js to this:
you'll get this error in Chrome console:
Uncaught TypeError: Cannot read property 'items' of undefined ext-all.js:18 Ext.cmd.derive.getDockedItems
But if you comment this:
initComponent : function() {
                            this.callParent();
                        },
Everything is ok.
Ext.define('AM.view.Viewport', {
        extend : 'Ext.container.Viewport',
        layout: 'border',
        items : [{
                    border : false,
                    region : 'north',
                    xtype : 'progressbar',
                    text : 'Ready',
                    height : 20
                }, {
                    region : 'west',
                    xtype : 'userlist',
                    width:300
                }, {
                    region : 'center',
                    xtype : 'treepanel',
                    initComponent : function() {
                        this.callParent();
                    },
                    columns : [{
                                xtype : 'treecolumn',
                                sortable : false,
                                width : 200,
                                text : 'lala',
                                dataIndex : 'text'
                            }, {
                                flex : 1,
                                sortable : false,
                                text : 'haha',
                                dataIndex : 'pars'
                            }]
                }]
    });
1- try to call with the Parents arguments like this:
.
.
.
,initComponent : function() {
 this.callParent(arguments);
 },
.
.
.
OR call the the super Class:
.
.
,initComponent : function() {
     this.callSuper(arguments);
 },
.
.
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With