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
1 Answer
Reset to default 4Instead 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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745600356a4635364.html
评论列表(0条)