Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

376
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda