我想在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