gpt4 book ai didi

带有复选框的 ExtJS 组合

转载 作者:行者123 更新时间:2023-12-04 06:28:48 28 4
gpt4 key购买 nike

对于我使用的组合框内的复选框:

AOEDComboAssociationName = new Ext.form.ComboBox({
id: 'AOEDComboAssociationName',
store: AOEDstoreAssociationName,
displayField: 'Name',
valueField: 'Id',
typeAhead: true,
mode: 'local',
emptyText: '',
selectOnFocus: true,
triggerAction: 'all',
width: 220,
tpl: new Ext.XTemplate('<tpl for=".">'
+ '<div class="search-item" >'
+ '<input type="checkbox" class=" x-form-checkbox x-form-field">&nbsp;{Name}'
+ '</div></tpl>'
)
})

它的显示复选框以及组合的显示字段,但是当我选择一个项目组合时会自动折叠,因此再次单击组合以选择多个(另一个项目)

如何检查不止一次?

最佳答案

How can I check more than once?



在组合框中设置:
multiSelect: true

关于带有复选框的 ExtJS 组合,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5700900/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com