Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

377
Vistas
Tabulator v5 tooltip: cell.getData is not a function?

Using Tabulator v5 with Laravel (v8).

In the tooltip of a column I want to refer to another property.

This used to work in v4:

resources/js/app.js

import {TabulatorFull as Tabulator} from 'tabulator-tables';
window.Tabulator = Tabulator;

table.blade.php

var table = new Tabulator("#table", {
...
  columns: [
    { title:'test', field:'test',
      tooltip: function(cell) {
        console.log("cell:", cell ) // ColumnObject (?)
        console.log("field:", cell.getField() ) // "test"
        console.log("cells:", cell.getCells() ) // empty
        console.log("data:", cell.getData() ) // error: no such function
        //return cell.getData().someProperty
      },
    },
  ],
...
})

Now I get an error in the console:

cell: Proxy {_column: Column$1, type: 'ColumnComponent'}
field: test
cells: []
The column component does not have a getData function, have you checked that you have the correct Tabulator module installed?

Tabulator's tooltip documentation states the argument is a CellComponent but it actually is a ColumnComponent? And/but getCells() does not return the cells?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

There is no getCells function on a Cell Component, you would need to get the Row Component to call that function.

So your code should read:

console.log("cells:", cell.getRow().getCells())
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda