Ext Grid 添加 tip 提示信息

请关注新浪微博 账号:大数据进行时(http://weibo.com/u/3272022684

1.
{header:"姓名",dataIndex:"actor",sortable:true,width:80,renderer:showTip},
2.
function showTip(data, metadata, record, rowIndex, columnIndex, store){
//moviesColumn 如果为null,可以通过record获取title值
var title=moviesColumn.getColumnHeader(columnIndex);
metadata.attr = 'ext:qtitle="'+title+'" ext:qtip="' + data + '"';  
//metadata.attr = 'ext:qtip="' + data + '"';
//return "<div ext:qtip='<img src=\""+value+"\" width=100 hight=100/>'>"+value+"</div>";   
return data;
}

你可能感兴趣的:(ext)