java如何在Ext.data上添加鼠标悬停事件。杰森商店?
我遇到了一个问题,在Ext.form中。ComboBox通过在beforequery侦听器中进行ajax调用,然后填充JSON对象来显示数据。数据标题建议
var titleEditCombo = new Ext.form.ComboBox({
store: ABCD.data.TitleSuggest,
displayField: 'for_display', emptyText:'Please type a title',
lazyRender:true, typeAhead:false, forceSelection:true, selectOnFocus:true, autoSelect:false, resizable:true,
triggerAction: 'all', mode: 'remote', minChars:3, queryDelay:750, listWidth:550, listClass:'ab-combo-title',
listEmptyText: 'No titles found',
listeners: {
beforequery: beforeTitleComboQuery,
select:Portlet.onTitleSelect
}
});
现在,这个JSON存储使用use load事件处理数据,然后使用ABCP显示。模板。tpl_标题。申请
ABCD.data.TitleSuggest = new Ext.data.JsonStore({
root:'XYZ',
totalProperty :'XYX',
fields: [
{name:'xxx', mapping:'xxx'},
{name:'yyy', mapping:'yyy'},
{name:'for_display', mapping:'for_display'}
],
baseParams: {"start":1, "limit":2, "titleTypes": [""]},
url: ABCP.Url.SuggestTitles,
listeners: {
load: function(oStore, ayRecords, oOptions){
oStore.each(function(){
this.set('for_display', ABCP.templates.tpl_title.apply([
this.xxx,
this.yyy
]));
});
},
}
});
我想在鼠标上显示组合框中显示的值xxx和yyy的附加数据(值是使用json存储设置的,我们应该修改存储以包含几个附加字段)。我无法在已经显示的值xxx和yyy上提供此鼠标悬停功能。 这些来自商店的新值应显示在现有值上方的鼠标上
请帮助我,伙计们,我无法为组合框中显示的特定数据添加鼠标悬停事件
我希望我的问题是清楚的
共 (0) 个答案