Hello,
I’m dynamically adding a tooltip using the template property here since the order of the grid can change:
const data = settings.row.data;
if (data.status === ‘Ok’) {
settings.template = `
<div><smart-tooltip
position=”left”
selector=”status-${settings.row.id}”
delay=”0″>Ok</smart-tooltip>
<span id=”status-${settings.row.id}” class=”material-symbols-outlined”>done</span></div>`;
settings.cell.color = ‘green’;
} else {
settings.template = `<div><smart-tooltip
position=”left”
selector=”status-${settings.row.id}”
delay=”0″>Missing Required Item</smart-tooltip>
<span id=”status-${settings.row.id}” class=”material-symbols-outlined”>error</span>`;
settings.cell.color = ‘red’;
}
When the tooltip for error shows, since it has longer text, it gets cutoff on the right side. At first I wondered if it was because of the adjacent div but if I change the position to “left” it also gets cutoff by it’s sibling cell. I’m using Angular.