Jacobian Jacobian - 2 months ago 69
Javascript Question

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?

Answer

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

Comments