Tabulator 4.9,有没有办法在一个单元格中有两种不同颜色的文本?

Tabulator 4.9, is there a way to have 2 different colors of text within a cell?

客户要求记录的 CommentDescription 字段必须显示在同一单元格中,但 Comment 的文本必须显示为红色,而 Comment 的文本必须显示为红色Description 应该是黑色的。使用修改器,我可以组合这两个字段并将它们显示在一个单元格中,但我还没有看到如何在该单元格中使一个具有红色文本而另一个具有黑色文本。

有办法吗?

谢谢,

马特

我不想那么做,只需使用 Customer Formatter 函数

formatter:function(cell, formatterParams, onRendered){
    return '<span style=color:red>' + cell.getRow().getData().Comment + '</span><P><span style=color:black>' + cell.getRow().getData().Description + '</span></p>';
}