简体   繁体   English

extjs-将组合框添加到网格面板标题中……标题所在的位置

[英]extjs - add combobox inside grid panel header … where the title lays

is there a way to add a combobox box to this part of a grid header? 有没有一种方法可以将组合框添加到网格标题的这一部分? I can't seem to find any examples when I look in sencha docs. 当我查看sencha文档时,似乎找不到任何示例。

截图

Sure, take a look at the header config. 当然,请看一下标头配置。 You might specify your custom items in here. 您可以在此处指定自定义项目。

    header: {
        items: [{
            xtype: 'combo',
            queryMode: 'local',
            store: ['male', 'female']
        }]
    }

Here is the working fiddle: https://fiddle.sencha.com/#view/editor&fiddle/1qfb 这是工作提琴: https : //fiddle.sencha.com/#view/editor&fiddle/1qfb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM