您的位置:首页 > 产品设计 > UI/UE

ligerui实现鼠标滑过行,显示单元格内容

2014-04-01 20:08 495 查看
实现鼠标滑过行时,显示操作表格中的内容,移出时隐藏。

{display : '操作',name : 'operate_list_grid',width:'200',
render:function(rowdata, rowindex, value){
var tempSet ='';
tempSet+='<span style="display:none;" id=\'span_'+rowdata.id+'\'>';
tempSet+='<a href="#" onclick="test(\''+rowindex+'\')"><img srcedit.gif" />下载</a>';
tempSet+='</span>';
return tempSet;
}


构建表格($('#list-grid').ligerGrid(options); )的时候在options中添加事件
onAfterShowData : function(currentData){
$(".l-grid-row").hover(function(){
$(this).find("span").show();
},function(){
$(this).find("span").hide();
});
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐