Closed jeanvdr closed 4 years ago
You need to use ngAfterViewInit
:
ngAfterViewInit(): void {
this.data.forEach((row, index) => {
this.table.apiEvent({
type: API.setRowStyle,
value: {
row: index + 1,
attr: 'background',
value: row.age > 30 ? '#fd5e5ed4' : 'green',
},
});
});
}
Hi, I would like to color an entire row depending on a cell value of each row. How can I hook the table.API.setRowStyle for this ? Thanks