की 'आइटम' पढ़ा नहीं जा सकता आप नमूना बदल सकते हैं: app/simple/app/Viewport.js
यह करने के लिए:ExtJS 4.1: तो अजीब त्रुटि: Uncaught TypeError: गुण अपरिभाषित
:Uncaught TypeError: Cannot read property 'items' of undefined ext-all.js:18 Ext.cmd.derive.getDockedItems
आप क्रोम कंसोल में इस त्रुटि मिलेगी
लेकिन यदि आप टिप्पणी करते हैं:
initComponent : function() {
this.callParent();
},
सब कुछ ठीक है।
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'
}]
}]
});