- 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'//json的目录啦,或者是你远程的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],//zz这里的icon是你的图片的具体路径,不要搞错哦,我这里是通过上面的那个json获得图片路径的
- displayField: 'name',
- valueField : 'value',
- editable : false,
- multiSelect : false
- }
- ]