Ext下拉框图片+文字
来源:互联网 发布:淘宝店铺如何设置会员 编辑:程序博客网 时间:2024/06/06 08:28
- this.items = [
- {
- xtype: 'form',
- bodyPadding : '5 5 0',
- items: [
- {
- xtype: 'textfield',
- name : 'name',
- labelAlign : 'right',
- fieldLabel: '<font color=red>*</font>按钮名称'
- },
- {
- fieldLabel : '图标',
- xtype : 'combobox',
- name : 'icon',
- store : Ext.create('Ext.data.Store',{
- fields : ['name', 'icon','value'],
- autoLoad:true,
- proxy :{
- type :'ajax',
- url : '../***/***/***/***/store/button/icon.json'
- },
- reader : {
- type : 'json'
- }
- }),
- labelAlign : 'right',
- [b]tpl:'<tpl for="."><div x-boundlist-item:qtip="{icon}" class="x-boundlist-item"><img src="{icon}" width="16" height="16"> {name}</div></tpl>'[/b],
- displayField: 'name',
- valueField : 'value',
- editable : false,
- multiSelect : false
- }
- ]