日期:2014-05-16 浏览次数:20344 次
How to select text in the grid (with the mouse) so that it can be copied to the clipboard
?
1.相关帖子:http://extjs.com/forum/showthread.php?p=154426#post154426
?
2.下面是Condor 使用的方法:
<style type="text/css"> .x-selectable, .x-selectable * { -moz-user-select: text!important; -khtml-user-select: text!important; } </style>
?
var grid = new Ext.grid.GridPanel({
viewConfig: {
templates: {
cell: new Ext.Template(
'<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} x-selectable
{css}" style="{style}" tabIndex="0" {cellAttr}>',
'<div class="x-grid3-cell-inner x-grid3-col-{id}" {attr}>{value}</div>',
'</td>'
)
}
},
...
});
?
3.如果你想把它设置为GRID的默认属性,可以使用以下代码: