0
votes

I'm trying to style only tabulator empty cells. I tried with a custom formatter but it seems to be called only on cells with data. Any suggestion on how to proceed?

1

1 Answers

0
votes

Seems to process fields without data just fine ...

https://jsfiddle.net/udpr2680/

new Tabulator("#tabulator", {
  data:[{id:4957},{id:39857,price:100}],
  columns: [
    { title: "number", field: "id"},
    { title: "price", field: "price",formatter: function(c,fP,onR) { let p = c.getData().price; if (p === undefined) return "undefined"; return p; } },
    ],
});