我在ExtJs框架中编写了一个填充了项目的组合框.当用户将鼠标悬停在项目上时,我无法获得工具提示.
以下是代码:
$formPanel .= " new Ext.form.ComboBox({
tpl:'<tpl for =\".\"><div ext:qtip=\"{abbr}\" class=\"x-combo-list-item\">{state}</div></tpl>',
id:'type_blackout_weekly',
store: sstore,
displayField:'state',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Select a state...',
selectOnFocus:true,
forceSelection: true,
width:135
}),";
var statedata = [
['AL', 'Alabama'],
['AK', 'Alaska'],
['AZ', 'Arizona'],
['WV', 'West Virginia'],
['WI', 'Wisconsin'],
['WY', 'Wyoming']
];
var sstore = new Ext.data.SimpleStore({
fields: ['abbr', 'state'],
data : statedata
});
Run Code Online (Sandbox Code Playgroud)
任何指导都非常感谢.
extjs ×1