Search code examples
tabulator

Making custom Tool-tip for each cell


I want to make visible a row variable value ("company" to be specific) on hover as tool-tip.

I have tried declaring "tooltips" custom function in table declaration returning the value.

tooltips: function (cell) {
        let data = cell.getRow();
        return "Value of " + data.company;
      }

Complete code is available at this fiddle

I want to display the value of company variable i.e Alpha, Beta, Gamma, etc on hover of the mouse.


Solution

  • Try this:

    tooltips: function (cell) {
            let data = cell.getRow();
            return "Value of " + data._row.data.company;
          }