Hello all,
I am looking for advice with using the node-red-node-ui-table node. I would like to set the BG color of cells in a column that have the value of true. I cannot seem to find the correct formatter or the formatters that are available dont seem to work in the way I expect. using this function to set the column params in a msg.ui_control field does not seem to do anything at all.
msg.ui_control = {tabulator: {columns:[
{
"field": "vals",
"width": "30%",
"editor": false,
"formatter": "function(cell, formatterParams){ var value = cell.getValue(); if (value === false) { cell.getElement().css({ 'background-color': '#D31772' }); } return value; }"
}
]
}
}
node.send(msg)
return ;