`

Extjs4 comboBox qtip

 
阅读更多

// 数据

var _Store = new Ext.data.JsonStore({

url : '获取数据的URL',

fields : [ 'tag', 'name', 'title' ]    //注意 title就是需要提示的内容

});

ConfigCombo = new Ext.form.ComboBox(

{

triggerAction : 'all',

fieldLabel : '消息',

anchor : '60%',

name : 'key',

editable : false,

lazyInit : true,

allowBlank : false,

blankText : '请选择消息',

store : _Store,

valueField : 'tag',

displayField : 'name',

tpl : '<tpl for="."><div class="x-combo-list-item" ext:qtip="{title}" >{name}</div></tpl>'  //这里要按照次顺序,title就是上面fileds的title,name同样。

});

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics