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

 

posted @ 2016-05-19 10:37  大新博客  阅读(1666)  评论(0编辑  收藏  举报