Word-wrap grid cells in Ext JS

后端 未结 6 1840
野性不改
野性不改 2020-12-24 12:17

(This is not a question per se, I\'m documenting a solution I found using Ext JS 3.1.0. But, feel free to answer if you know of a better solution!)

The Colu

6条回答
  •  滥情空心
    2020-12-24 12:52

    Other solution is that:

    columns : [
        {
            header: 'Header',
            dataIndex : 'text',
            renderer: function(value, metaData, record, rowIndex, colIndex, view) {
                metaData.style = "white-space: normal;";
                return value;
            }
        }
    ]
    

提交回复
热议问题