[英]Can't get Ext.ux.grid.Search to work in extjs 4.2
我想為我的網格使用搜索插件。 搜索插件需要導入,根據我可以找到的文檔,它是: Ext.ux.grid.Search 。
Ext.require([
'Ext.data.*',
'Ext.grid.*',
'Ext.tree.*',
'Ext.ux.grid.FiltersFeature',
'Ext.toolbar.Paging',
'Ext.ux.grid.Search'
]);
據我了解,那么您只需要在表中添加插件即可。 像這樣 :
plugins: [{
ptype: 'bufferedrenderer',
trailingBufferZone: 20, // Keep 20 rows rendered in the table behind scroll
leadingBufferZone: 50 // Keep 50 rows rendered in the table ahead of scroll
},
new Ext.ux.grid.Search({
iconCls:'icon-zoom'
,readonlyIndexes:['country']
,disableIndexes:['pctChange']
,minChars:1
,autoFocus:true
,mode:'local' // to filter on local; for remote add mode:'remote'
,width: '50'
})
],
但是我得到的錯誤是:
未捕獲的TypeError:undefined不是函數
為線
新的Ext.ux.grid.Search({
有任何想法嗎?
從插件的名稱來看,我猜它是我早就寫的插件,因此您可以使用舊版本或fork。
我最近更新了Ext 4.x的插件,並且部署方法現在非常簡單明了,因為它作為Sencha Cmd認可的軟件包分發。
在這里看到它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.