开发者

JQGrid ToolTip, length of time it displays

JQgrid has a tooltip built in that when the user hovers over a cell, the contents of that cell appear in the tool tip. we are using this for cells that contain large amounts of text.

The only problem is, is that the tool tip only appears for about 5 seconds, and then disappears. Is there a way开发者_StackOverflow中文版 to make this tool tip appear until the mouse is moved, or at least a longer length of time?

thanks!


Probably there are a simple way using CSS or JavaScript technique, but I din't know this. What is definitively possible is to use some Tooltip plugin to implement the behavior which you want. In the answer for example I included the demo which use jQuery UI Tooltip which will be released in th next version (1.9) of jQuery UI. You can start to use jQuery UI Tooltips already now.

You have many settings to customize Tooltips. It can look not so erotically like on the demo. In the demo I wanted to show only, that new Tooltips can display HTML code and not only the text. Only because of that I made tolltips on the demo in color and with the "<hr />" element in inside the displayed text.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜