ExtJs Column 显示文字内容过长 使用Tootip显示全部内容

时间:2021-02-24 20:13:40
{
text: 'Column Header Blah',
dataIndex: 'blah',
renderer: function(value, metaData, record, rowIdx, colIdx, store) {
metaData.tdAttr = 'data-qtip="' + value + '"';
return value;
}
}
{
renderer: function(value, metaData, record, rowIdx, colIdx, store) {
// Sample value: msimms & Co. "like" putting <code> tags around your code value = Ext.String.htmlEncode(value); // "double-encode" before adding it as a data-qtip attribute
metaData.tdAttr = 'data-qtip="' + Ext.String.htmlEncode(value) + '"'; return value;
}
}