Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

367
Views
Información sobre herramientas de Tabulator v5: ¿cell.getData no es una función?

Usando Tabulador v5 con Laravel (v8).

En la información sobre herramientas de una columna, quiero hacer referencia a otra propiedad.

Esto solía funcionar en v4:

recursos/js/app.js

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

tabla.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 }, }, ], ... })

Ahora me sale un error en la consola:

 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?

La documentación de información sobre herramientas de Tabulator indica que el argumento es un CellComponent pero en realidad es un ColumnComponent . ¿Y/pero getCells() no devuelve las celdas?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No hay una función getCells en un componente de celda , necesitaría obtener el componente de fila para llamar a esa función.

Entonces su código debería leer:

 console.log("cells:", cell.getRow().getCells())
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!