I have a requirement say ,
- I add a new row into the table (assume this row has errors) and table is part of child component
- I have a button (b1) in the main component which when I clicked, i find which row to be highlighted
- When b1 is clicked, I listed in childcomponent’s after deselect(event) method to find the row to be highlighted and apply using this.hot.setCellMeta(i,0, ‘className’ ‘redcolor’)
But the new styles are not rendering.
Could you provide us an example or do you suggest any other event to be listened to after we move out from table. I tried afterLoad, still doesn’t work
afterDeselect(event) {
if (inValidRows.length > 0) {
for (let i = 0; i < this.hot.countCols(); i++) {
inValidRows.forEach(element => {
this.hot.setCellMeta(element + 1, i + 1, ‘className’, ‘redcolor’);
this.hot.render();
});
}
}
}