Ext JS 4过滤器功能,无需不必要的排序和菜单

问题描述 投票:0回答:1

如何在Ext JS 4中创建过滤器而没有排序功能和菜单,只需要“搜索”文本字段即可。例如下面的代码:

        var gridGroups = Ext.create('Ext.grid.Panel', {
        columns: [
            {dataIndex: 'name', flex: 1},
        ],
        features: [{
            ftype: 'filters',
            encode: true,
            local: true,
            filters: [{
                type: 'string',
                dataIndex: 'name'
            }]
        }],
        ....

我通过不必要的菜单和排序获得了此结果,但我只需要搜索字段enter image description here因此,搜索字段必须在此处:enter image description here

extjs
1个回答
0
投票

这不是那么容易。但是您可以查看此插件:enter link description here

© www.soinside.com 2019 - 2024. All rights reserved.