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;
    }
}
相關文章
相關標籤/搜索