【发布时间】:2015-05-18 08:04:04
【问题描述】:
我正在为我的网站使用来自www.phpgrid.com 的数据网格。我想将工具提示自定义为自定义内容。我应该修改哪个文件,我应该做什么?
我在他们的文档中看到了一个参考:
http://phpgrid.uservoice.com/knowledgebase/articles/33488-tool-tip-for-column-headers
但这对我不起作用。
【问题讨论】:
我正在为我的网站使用来自www.phpgrid.com 的数据网格。我想将工具提示自定义为自定义内容。我应该修改哪个文件,我应该做什么?
我在他们的文档中看到了一个参考:
http://phpgrid.uservoice.com/knowledgebase/articles/33488-tool-tip-for-column-headers
但这对我不起作用。
【问题讨论】:
你想做什么?该代码非常不言自明。将“Column 1 header title”替换为第一个列标题,将“Column 2 header title”替换为第二个,依此类推。
jQuery(document).ready(function($){
jQuery("tr.ui-jqgrid-labels th:eq(0)").attr("title", "Column 1 header title");
jQuery("tr.ui-jqgrid-labels th:eq(1)").attr("title", "Column 2 header title");
jQuery("tr.ui-jqgrid-labels th:eq(2)").attr("title", "Column 3 header title");
});
【讨论】: