Hello,
I want to add a dynamic tooltip depending on the value of the cell. On this stackblitz: https://stackblitz.com/edit/github-wnyy8e-34j4se?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html
On line 81 of app.component.ts, I want to add a tooltip for, let’s say, any cell value that starts with ‘C’.
{
label: 'Product',
width: 200,
dataField: 'productName',
formatFunction: function (settings) {
const data = settings.row.data;
if (data.status.startsWith('C')) {
settings.cell.tooltip = 'I am a tooltip';
}
},
},
Currently what I’ve tried above doesn’t work. What would be the way to do it?