最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - MultiSelect combobox in modern ExtJS - Stack Overflow

programmeradmin3浏览0评论

Something strange has happened and easy-to-use property multiSelect has gone deprected for some reason. Documentation advises to

Use {@link Ext.form.field.Tag} or {@link Ext.view.MultiSelector}

but does not provide any example. So if I have an ordinary bobox, how can I make it multiselectable?

Something strange has happened and easy-to-use property multiSelect has gone deprected for some reason. Documentation advises to

Use {@link Ext.form.field.Tag} or {@link Ext.view.MultiSelector}

but does not provide any example. So if I have an ordinary bobox, how can I make it multiselectable?

Share Improve this question asked Sep 9, 2016 at 16:25 JacobianJacobian 10.9k32 gold badges140 silver badges233 bronze badges 3
  • Please change you question to "Multiselect bobox in classic Extjs", you have accpeted the answer so it means you are using classic toolkit – Waqar Haider Commented May 22, 2017 at 11:24
  • and tag field is not available in modern modern toolkit, is it? – Waqar Haider Commented May 22, 2017 at 11:24
  • @Jacobian The words "Modern" and "Classic" refer to very specific versions of ExtJS. As written, the title of this question is awfully confusing. Please correct the title as Waqar has already requested and I will remove my down-vote. – Jasel Commented Dec 7, 2018 at 14:37
Add a ment  | 

1 Answer 1

Reset to default 4

Instead of an ordinary bobox with multiSelect, you should use tagfield. Configuration is basically the same.

{
    xtype: 'tagfield',
    fieldLabel: 'My first tagfield',
    store: {
        ...
    },
    displayField: 'name',
    valueField: 'id',
    queryMode: 'local',
}

You can checkout an example here

发布评论

评论列表(0)

  1. 暂无评论