{dataIndex: 'message', text: 'MESSAGE', width: 540,
renderer: function (value , metaData , record , rowIndex , colIndex , store , view) {
var textWidth = new Ext.util.TextMetrics(). getWidth(value);
var cellWidth = metaData.column.width;
if(cellWidth < textWidth)
metaData.tdAttr = String().concat('title="', value, '"');
return value;
}
},
댓글 없음:
댓글 쓰기