使用ExtJs多选组合框

Jus*_*son 2 javascript combobox extjs multi-select

如何在Ext.FormPanel使用ExtJs的同时实现多选组合框?我一直在寻找,但似乎无法找到与最新版本的ExtJs兼容的解决方案(这个问题类似,但没有工作/当前的解决方案).

这是我到目前为止所做的,但它只是一个选择:

new Ext.FormPanel({
    labelAlign: 'top',
    frame:      true,
    width:      800,
    items: [{
        layout: 'column',
        items:[{
            columnWidth: 1,
            layout:      'form',
            items: [{
                xtype:          'combo',
                fieldLabel:     'Countries',
                name:           'c[]',
                anchor:         '95%',
                allowBlank:     false,
                typeAhead:      true,
                triggerAction: 'all',
                lazyRender:     true,
                mode:           'local',
                store:          new Ext.data.ArrayStore({
                    id:     0,
                    fields: ['myId', 'displayText'],
                    data: [
                        ["CA", 'Canada'], 
                        ["US", 'United States'],
                        ["JP", 'Japan'],
                    ]
                }),
                valueField:   'myId',
                displayField: 'displayText'
            }]
        }]
    }]
}).render(document.body);
Run Code Online (Sandbox Code Playgroud)

我没有在文档中看到任何表明支持这一点的参数.我也发现了这个这个,但我只能让他们使用Ext 2.

Mik*_*ler 6

查看SuperBoxSelect扩展程序.