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

{    
     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;
    }
}

 

你可能感兴趣的:(ExtJs Column 显示文字内容过长 使用Tootip显示全部内容)