Jacobian
Jacobian

Reputation: 10802

MultiSelect combobox in modern ExtJS

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 combobox, how can I make it multiselectable?

Upvotes: 0

Views: 6177

Answers (1)

Gašper
Gašper

Reputation: 815

Instead of an ordinary combobox 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

Upvotes: 4

Related Questions