[英]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.