动态修改phpgrid的tool-tip
Modify tool-tip of phpgrid dynamically
我正在为我的网站使用来自 www.phpgrid.com
的数据网格。我想将工具提示自定义为自定义的东西。我应该 mod 哪个文件以及我应该做什么?
我在他们的文档中看到了一个参考:
http://phpgrid.uservoice.com/knowledgebase/articles/33488-tool-tip-for-column-headers
但这对我不起作用。
你想做什么??代码很漂亮self-explanatory。将 "Column 1 header title" 替换为第一列 header,将 "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");
});
我正在为我的网站使用来自 www.phpgrid.com
的数据网格。我想将工具提示自定义为自定义的东西。我应该 mod 哪个文件以及我应该做什么?
我在他们的文档中看到了一个参考:
http://phpgrid.uservoice.com/knowledgebase/articles/33488-tool-tip-for-column-headers
但这对我不起作用。
你想做什么??代码很漂亮self-explanatory。将 "Column 1 header title" 替换为第一列 header,将 "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");
});