Created
August 15, 2013 09:15
-
-
Save ahhqcheng/6239479 to your computer and use it in GitHub Desktop.
Ext对于表格中的字过长,当鼠标移上去显示全部信息的实现方式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
header: 'id', | |
dataIndex: 'id', | |
hidden: false, | |
flex: 2.5, | |
renderer:function(before,metadata,r){ | |
var value = before.replace(/\n/g,'</br>'); | |
metadata.tdAttr = 'data-qtip="' + value + '"'; | |
return before.replace(/\n/g,' '); | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment