单元格展示内容显示不全,鼠标悬浮后 提示框展示全部,效果如下:
设置,第一步:添加形态:
"<span style='white-space: nowrap;text-overflow:ellipsis; overflow:hidden; display: inline-block;width:100%;'>"+$$$+"</span>"
第二步:其他修改
$('.reportPane')[0].style.background = "#1e243c";
var trs = $('.x-table tr');
trs.each(function(i, e) {
if (i % 2 == 0) {
e.style.backgroundColor = "#3e495b";
} else {
e.style.backgroundColor = "#353e4f";
}
});
//var currentcell = contentPane.curLGP.currentTDCell;
//if (currentcell != undefined) {
//var currow = $('.x-table tr')[contentPane.curLGP.getTDRow(currentcell)];
//currow.style.backgroundColor = "#2f4b69";
//currow.style.borderStyle = "solid";
//currow.style.borderWidth = "3px";
//currow.style.borderColor = "#3881c6 #1e4570 #1e4570 #3881c6";
//};
//鼠标经过
$(".x-table tr").mousemove(function() {
$(this).css("background-color", "#2f4b69");
$(this).css("border-style", "solid");
$(this).css("border-width", "3px");
$(this).css("border-color", "#3881c6 #1e4570 #1e4570 #3881c6");
});
//鼠标点击
$(".x-table tr").mousedown(function() {
$(this).css("background-color", "#2f4b69");
$(this).css("border-style", "solid");
$(this).css("border-width", "3px");
$(this).css("border-color", "#3881c6 #1e4570 #1e4570 #3881c6");
});
//鼠标离开
$(".x-table tr").mouseout(function() {
var i = $(this).context.rowIndex;
$(this).css("border", "none");
if (i % 2 == 0) {
$(this).css("background-color", "#3e495b");
} else {
$(this).css("background-color", "#353e4f");
}
});