我想在flexigrid表格列标题的悬停上添加工具提示。不同的工具提示内容的列。Flexigrid表格:如何在列标题上添加工具提示
Flexigrid网址:http://flexigrid.info/ GitHub的网址:https://github.com/paulopmx/Flexigrid
我没有得到关于同一对谷歌任何东西。
我想在flexigrid表格列标题的悬停上添加工具提示。不同的工具提示内容的列。Flexigrid表格:如何在列标题上添加工具提示
Flexigrid网址:http://flexigrid.info/ GitHub的网址:https://github.com/paulopmx/Flexigrid
我没有得到关于同一对谷歌任何东西。
这不适合你吗?除非我误解.. http://api.jqueryui.com/tooltip/
从jQuery链接:
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery- ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
</head>
<body>
<p>
<a href="#" title="Anchor description">Anchor text</a>
<input title="Input help">
</p>
<script>
$(document).tooltip();
</script>
</body>
的jsfiddle:http://jsfiddle.net/jplahn/JnrBZ/
flexigrid.js路916加
if(cm.title != undefined) {$(th).attr('title', cm.title);}
在你colModel部分下
$("#flex1").flexigrid({
colModel : [
{display: 'MyDC',title: 'My Data Column', name : 'mydatacolumn', width : 100, sortable : true, align: 'center'}
]
});
然后,您可以添加标题:属性。
bummi,感谢编辑我的评论看看不错。我仍然试图找出如何做到这一点。抱歉 –
if(cm.title != undefined)
{
$(th).attr('title', cm.title);
}
为我工作,但只是在右上角列标题,而不是其他列。
不,我使用flexigrid表的列标题来自js文件例如:https://github.com/paulopmx/Flexigrid/blob/master/demo/index.html – user2349035