`
tangjunliang
  • 浏览: 106922 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Extjs 在GridPanel中显示图标的方法

阅读更多
                {header:'名称',width:200,sortable:true,dataIndex:'appname'},
                {header:'图标',width:350,sortable:true,dataIndex:'appico',renderer:function(data, metadata, record, rowIndex, columnIndex, store) {
                    var data = record.data ;
                    var url = data.appico;
                    return String.format('<input id="show" type=image width=25 height=25 src='+url+' title="show"/>');
                }},

给相应的列写个renderer即可
  • 大小: 5.8 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics