如何将工具提示添加到jqgrid [英] How to add Tooltip to jqgrid

查看:47
本文介绍了如何将工具提示添加到jqgrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jqgrid显示服务器中存在的数据,如何在鼠标悬停工具提示上显示数据描述.

在jqgrid上显示工具提示的最佳方法是什么?

解决方案

jqGrid中在鼠标悬停时显示的工具提示仅是相应HTML元素的标题"属性.如果您想使用 setCell 更改工具提示:

$("#list").setCell(rowid,'Name','','',{'title':'my custom tooltip on cell'});

其中'Name'是将在其中设置工具提示的列名称,而rowid标识该行.有关更多信息,请阅读此答案(包括参考资料). >

I am using jqgrid to display data present in server how do i show description of data on mouse hover tool tip.

which is the best way to show tool tip on jqgrid?

解决方案

Tooltip shown in jqGrid on mouse hover is nothing more as the "title" atribute of the corresponding HTML elements. If you want change tooltip with setCell:

$("#list").setCell(rowid,'Name','','',{'title':'my custom tooltip on cell'});

where the 'Name' is the column name where the tooltip will be set and rowid identify the row. For more informaion read this answer including the references.

这篇关于如何将工具提示添加到jqgrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆