When you hover over a specific cell value, the hover value matches the cell value. Can I change the guidance text other than the cell value?
thank
In general, a tooltip is an attribute of titleelements <td>. You can use setCell to change the tooltip (see this ). In more complex situations, you can use jQuery.attr (see here ), or you are a tooltip plugin (see here ).
title
<td>
cellattr colModel , .
cellattr: function () { return ' title="my custom fixed tooltip for the column"'; }
It can reach 2 steps
title:false
write a global function and paste as formatting in colModel
var changeTitle = function(cellVal, options, rowObject){<br/> return "<div title='This is the cell value " + cellVal + "'>" + cellVal + "</div>";<br/> } colModel:[ {...},<br/> {name:'priorityFlag', index:'priorityFlag', width:40, align:"center", formatter: changeTitle },<br/> {...}]
There you go! ...
Install you after the grid to download this code ..
$("#PersonelGrid_DefViewMainPage").attr("title", "This is my Title.");
it works..
Source: https://habr.com/ru/post/1786718/More articles:Непоследовательные результаты от AC_CHECK_FUNCS - autotoolsIOmniWorker: Where does the function go to execute inside the task? - delphiHow to Order an NHibernate 3.0 Linq Request Based on the Name of the Delivered Property - .netCan I get Erlang OTP behavior in C Nodes? - event-handlingWill not match the template function - c ++Any way to generate duplicate operators << definitions? - c ++Внешний подключаемый модуль всплывающей подсказки на Jqgrid - tooltipRun ffmpeg command with C # - c #Facebook Проверьте, не пользователь ли "понравился" на странице - facebookCould not find Android emulator - android-emulatorAll Articles