extjs4.2 - Trying to create custom toolbar in extjs -


मैं अपना स्वयं का टूलबार बनाना चाहता हूं जो कि Ext.toolbar का विस्तार होगा .Toolbar

मैं इस तरह मेरी StandardToolbar वर्ग को परिभाषित:

  Ext.define ( 'js.grid.StandardToolbar', {विस्तार: 'Ext.toolbar.Toolbar', initComponent: फ़ंक्शन () {this.items = [{xtype: 'tbfill'}]},   

और फिर जब मैं अपना ग्रिड बनाता हूं, तो मैं इसे उसी तरह से पास करता हूं: < पूर्व> var myGrid = Ext.create ('js.grid.myGrid', {tbar: Ext.create ('js.grid.StandardToolbar')});

हालांकि इस पर ExtJS यात्राएं

मेरे त्रुटि ढेर यह है:।

Uncaught TypeError: गुण अपरिभाषित ext-सब-debug.js की 'लंबाई' पढ़ा नहीं जा सकता: 38282Ext.define .getRefItems ext-सब-debug.js: 38282Base.implement.callParent ext-सब-debug.js: 4263Ext.define.getRefItems ext-सब-debug.js: 49999getItems ext-सब-debug.js: 21998cq.Query.Ext .extend.execute ext-सब-debug.js: 22210Ext.apply.query ext-सब-debug.js: 22337Ext.define.getDockedItems ext-सब-debug.js: 44420Ext.define.getDockingRefItems ext-सब-debug.js : 44430Ext.define.getRefItems ext-all-debug.js: 51780get ext extro-debug.js: 21998cq.Query.Ext.extend.execute ext-सब-debug.js: 22213Ext.apply.query ext-सब-debug.js: 22337Ext.define.query ext-सब-debug.js: 37146Ext.define.getScrollTarget ext- सब -

क्या मैं कुछ गलत कर रहा हूं?

यह था पुराना भूल गया थाकॉलपरेंट इनइटम कॉमोनेंट समस्या मैंने आइटम को जोड़ने के बाद बस this.callParent (); को जोड़ा।

  Ext.define ('js.grid.StandardToolbar', {विस्तार: 'Ext .toolbar.Toolbar ', initComponent: function () {this.items = [{xtype:' tbfill '}] this.callParent ();},    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -