Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setRowClasses(): void {
this.table.apiEvent({
type: API.setRowClass,
value: [
{
row: 1,
className: 'gray',
},
{
row: 2,
className: 'pink',
},
{
row: 4,
className: 'yellow',
},
],
});
}
setRowClass(row: number, className: string): void {
this.table.apiEvent({
type: API.setRowClass,
value: { row, className },
});
}
}