gpt4 book ai didi

combobox - 带有 TPL 问题的 ExtJS 组合框

转载 作者:行者123 更新时间:2023-12-01 09:59:33 24 4
gpt4 key购买 nike

我按照前面的示例创建了一个包含“多个”列的组合框,但是,当我去选择一个项目时,它没有进行选择。如何使用 tpl 启用项目选择?

{
xtype: 'combobox',
tpl: '<tpl for="."><div class="x-combo-list-item" >{ntID} {PictureURL}</div></tpl>',
editable: true,
//autoSelect: true,
triggerAction: 'all',
store: 'userInfos',
displayField: 'ntID',
valueField: 'ntID',
fieldLabel: 'Username',
itemId: 'username'
},

最佳答案

您的列表项应替换为:

div class="x-boundlist-item"

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

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